Update build system for user daemon to CMake.

Currently tested and working on OSX. Should work on FreeBSD as well,
though testing still needs to be done. Support for Linux and Windows is
underway.