Fixed compatibility with recent Koa versions. Also, fixed flash message support.

- Make compatible with latest Koa versions (separate .req and .request).
- Add compatibility with koa-flash by emulating connect-flash (for Passport options like failureFlash).