Application loader refactor; removed dependency to koa and middleware. See #10