Cleaned up a bunch of front end javascript to improve readability, moved common stylus code to mixins, and split out dialog specific/mixin specific stylus and template code into their own directories. Closes #12