add middleware for ndb

@see https://developers.google.com/appengine/docs/python/ndb/?hl=ja#integration
add middleware for appstats

@see https://developers.google.com/appengine/docs/python/tools/appstats?hl=ja#Python_Setup
modified app.yaml to enable appstats