Rewritten server

Server has been rewritten to use a more user-friendly interface to
response creation.