Convert to use CMake for building
Commit local changes that were never committed...
Made abortive attempt to constify some stuff, fixed an issue with read-only DB connections and added example config file.