integrate std::ostream use, build skeleton shipping, fix versioning

std::cout and std::cerr have been replaced in areas that can live within
the daemon by a std::ostream alias so that a log file or other output
stream can be used in their stead.
Shipping isn't "complete" yet, but datapoints are pulled out, dumped,
and then marked shipped.
Versioning would break on a file database that hadn't been created yet.
There are still issues with it.
update versioning
make version into string
fix versioning for non-number strings
return catalog to memory
further integrate necessary shipping data

Shipping data needs username, password, backend, hostname, agent ID, and
client name
change ship to put out status properly
add agent structure

Shipping is now dissociated.  Credentials are stored in the agent
structure, whereas the catalog only stores the DEFAULT client and
hostname.  The agent structure is emplaced on every module, in the
loaded "Agent" module.
fix agent ID, GET SHIPPING WORKING

Agent ID was being set from the wrong field, setting it to 0
automatically.
SHIPPING WORKS IN A PRELIMINARY STATE NOW.  Data is shipped to the
selected backend properly, and the selected agent.  Alarm isn't yet set
up, but this is still pretty cool news.
remove pointless debugging message
merge changes
Merge branch 'expire' into ship

Conflicts:
	controller.cxx
	daemon.cxx
	datapoints/catalog.cxx
	datapoints/catalog.hxx
wrap transactions in a RAII wrapper, add alarms structure, fix vacuum, remove ~Datapoint()
add alarm shipping, finish a load of optimizations

Switched back to clang.  g++ still has failing c++11 regex.
Added a mutex lock for modules to keep log clean.
Removed username/password restriction from ship.  It doesn't use them.
Shipping alarms works 100% now.  Alarms even auto-close when all green
statuses come in.
Lua errors in module force a -1 error output.
Errors in module runs force a 10 minute cooldown.