Sqlite backend

I think this branch is ready to merge, but I'd like input from @Vazkii and @BinaryTENSHi.

Testing is currently set up on http://test.everythingisawesome.us so you can poke around at it if you want.