reorg for use as node.js module + new Backbone sync + misc