initial implementation of server

This is already deployed (and running) on the aws box, but here's the code (in server/). I'll keep improving it, but if you have any feedback, that'd be great.