preferring composition over inheritance; server can be shut down; closes #1 and closes #8

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>