using Middleware from api.middleware.__init__, just what we need. Added debug middleware to the __init__ file. Also extended copyright range from 2011-2012.