Refactors dredd

Makes it a bit more modular, removes some dependencies from dredd.coffee.