Refactor the core api from koa framework to express.

Refactoring our api from koa to express until we have a better understanding of koa-specific attributes such as generator functions, yield statements, and thin middleware libraries.