Minor bug fixes for new webroot layout
  + Added PATH_WEBROOT constant
  + Added check for SERVER_MODE constant in debug class