Improved ID slug escaping. Added request-level logging for App Engine.