about to evolve this some more, need to branch...
all file metadata is now stored in the note object. files table is kaput. uploader works via attaching a file to a note (ie PUT /notes/1234/file). note MUST exist before uploading file. seems to work great.