Add Jasmine library & create various tests

I added Jasmine for some unit & integration tests. They're not 100% ideal (`destroy()`) doesn't want to work with Jasmine. I'm continuing to look into this, though. I'd also like to get a Gulp task going at some point.

Tests can be viewed in tests/spec/tests.js & in the browser at tests/SpecRunner.html.