Partial commit. Basics of the chat stream is now working

Continuing to bring functionality across from the previous version, the
chat stream now works.  Some slight changes to the database code have
also been made.
Partial commit. Editing content now works

(For a few basic content entry types)