figured out how to test js. this involved tweaking the spec setup and us...

...ing the database cleaner gem.

unfortunately, the tests are slow as molasses now.

fortunately, the permission creation/update/etc are now being tested!

this closes #5.