rework all the things

this is a total rework of the server.  it basically works, minus a database.