Clean up code.  Force elmah to log errors outside of http context to support WCF.