* Add '-d' to "daemonize". Will also enable syslogging.
* Fix a couple of bugs in 'session'.
* Clean up 'log', and use LOG_* macros instead.
* Add syslog(bool) to 'log' to enable/disable the use of syslog.
- Clean up some junk code that was left over.
- Replace ptr<> with strong_ptr<> and weak_ptr<> to easier distinguish
between weak and strong pointers.
- Fix a couple of bugs.