add a profile middleware

To profiling a page:
- Debug = True
- Add the middleware class "seahub.base.profile.ProfilerMiddleware"
- Append the param "__prof__=true" to the url param of the page.

See the file seahub/base/profile.py for details.