Added base controller, extracted http server