basic server setup
Server inital setup. Trying to implement session persistence over resarts also.