Add memory profiling

Use the GAE runtime module and the memory_usage().current() to get the memory
used by the request.

@robertkluin