refactor(main): use koa, and easy for customize