Build server

It sorta works.

Needs lots of refactoring magic.