Initial Rails conversion. CouchDB now broken, as this is moving to flat files and btsync.
Switches Scans to flat-file records.