Break up Angular controller into directives

* Set up Konacha for JavaScript testing