major changes to sentry/mixpanel.
added SentrySetup javascript file.
moved some items out of api and into $config.