Add daemon continual heartbeat
Use generic json2bson function for storage

Not only is it less code (dbtypes.go is gone), but the conversion is
less lossy.