Initial refactoring to use Rachet HttpServer. Work in progress