move things not necessary as middleware to be overridden hooks in appengine_config.py

move things not necessary as middleware to be hooks in appengine_config.py