Everything

Lots of refactoring and adding convenient stuff like a dev server and tests and whatnot.