Server almost done

I'm not sure if it works yet; I need to write tests for it
Requires loops in the actual application right now; may change if design
requires it