Refactor scripts into modules

This change is to convert existing JS scripts into modules and add a grunt build script to generate a bundle using browserify.

I need to perform more regression testing but I wanted to submit what I have so far to get some feedback.

Depends on https://github.com/vegphilly/vegphilly.com/pull/425.
consider extracting the constant `'dev'`/`"dev"` to a module level variable.