Added unit testing infrastructure and initial unit tests

Decided to use qunit and create some initial unit tests to see if that
works like I think it will