refactor server in its own module
Merge pull request #3 from monotom/master

refactor server in its own module