refactoring server to a module
creating REST server start script