Fix db-related things and add docs
Fix json_error bug

Irritating when there are bugs in the error reporting. The problem
here is that message may not be a string and therefore may not be
serializable.
Add code for posting messages
Implement post and receive