try to avoid using DOCUMENT_ROOT
fix $ missing
added Raven plugin to report errors to Sentry