Added support for ~/ in Razor OWIN.
Removed elmah and added owin as a catch all handler.