Add very basic support for getting data from files, which is currently very brittle. Change camera to record format, updating docs/file-format.txt accordingly.