Old code

This is a kinda-sorta-working version but it needs new data schema and
auth and all sorts of stuff.