Put HTTP-API request handlers in a package and added a task dispatcher.