Tweaks to DB format in preparation of maybe replacing it:

* Removed "contents_ids" from objects.  Contents should be found by doing a query on location_id.
* Explicitly keep track of the next available ID.  No more duplicate IDs and the stupid bugs associated with them.
Removed in-client code editor.  Use the full editor instead. Closes #32.