Moved manage functionality into server.

Added Makefile.