Added listener code as well as Logger

Use `Trace` instead of custom logger. Refer this http://support.microsoft.com/kb/815788