adding add-sync-record.
Merge branch 'local' into sync
Implementing sync tracking table

Every change to the profile data (aka NOT messages) now adds an entry
into the "sync" table. Every operation that changes the data also now
returns a "sync_ids" key in whatever object is returned, which holds the
ids of each sync record. The idea is that these ideas can be tracked in
the client, and when a POST /sync is called, each change will come
through with the full-changed object, AND the sync ID that made the
change. This way, the client can ignore specific changes, and let other
ones through (like, I edited this note, but someone else did too, so
instead of doing a blanked ignore of this note on the next sync, now i
can specifically ignore MY change, but let another user's change in).

None of the actual syncing functions are implemented yet, they are still
working on the old `mod` field system. Need to come up with brand new
queries...

Also none of the above is really tested, yet.
implementing CID saving on note/board/persona add
merging in database auto-schema updates
removing some old code lbock
removing "time" field from sync records. its already in the ID DERR
implementing sync records for keychain (also removing some debug garbage)
trying some new index stuff in schema for sync
Merge branch 'local' into sync
getting some shit done on sync: all thats left now is board (halfway done, broken) sync and note sync (havent started). this commit breaks the client and makes it bitch a LOT
new sync system working great =]. each change gets its own sync item, which then in turn is pulled out on POST /sync. syncing is done by ID instead of timestamp, which is a lot more accurate. no more skipped sync items on the client. cant speak to large-sync-table performance yet, but it should be fairly performant because everything uses indexes now.