[#4] Updated return value from do_request.
[#4] Refactored modules into API module and worker.