AMD, CommonJS, and browser globals.

With routefilter not being AMD complaint and updating to Backbone 1.1 which is now AMD, it wouldn't work with requirejs optimization without turning on [wrapShim](https://github.com/jrburke/r.js/blob/master/build/example.build.js) which when turned on other shims didn't work.

This code so far works fine in our project. Tests also pass.