rename sync to _sync (ha, great dep system...)
more incremental syncing changes. starting to flesh out the local/remote syncing. also, updated db.js to support atomic ops