refactor to base netty server
optimize rest integration tests