added moar config options.

Add the ability for a sql slave
configurable policy json
heartbeat config
moved database connection config to database section
set default policy json