move server helpers to lib

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>