Bug Fix: Exceptions are now properly handled

  * Fixed issues with the debug page
  * Debug page now shows up when running in development mode only