Remove redundant get version code, return version 0 when box is empty.
Fix typo in diff query, remove superfluous confusing debug lines
moved libraries about
merging delete updates in

Merge branch 'master' into client-broken-refactoring-cid
update to backbone saved the day