Add the MockGraphite class that reads lines of text sent to it by the metrics service.
Graceful shutdown.
Move the MockGraphite class to its own file.