Adding debug flag to web.config so that the example cloud app can be F5-debugged
Updated the diagnostics trace listener factory to trace events properly rather than using Trace.Write
Moved thread.sleep to where it was meant to be