move refactoring
solid trolololo
more refactoring!
pulling serialization into own thing

also introducing a bit of routing
supporting querying from the client