Framework koa

@ivarpruijn please review.