Refactor some of these handlers into a more MVC format
Hopefully fix the websocket crash on IIS 7?