* adding koa-basic-auth declarations and tests * adding noImplicitThis option * fixing return type * changes based on feedback from Andy