moved server command functionality into new lib
use server lib for server-tasks instead of creating a new process