Dependency reduction

Now only depends on postgresql and capnproto.
To re-enable logging via glog, set USE_GLOG=1 when running cmake.