Refactor

- update to current koa middleware format
- ditch the `extend` module
- update koa release for tests