Added a testing framework for the server.

It's in python, and uses pytest, with the Requests and MySQLdb
packages. I also refactored a couple small things, and changed the
'static' directory to 'frontend'.