Refactor

Sorry for horrible branch name. This refactoring deals with https://github.com/Clever/sentry-node/issues/2 and structures the code a little more logically.