Added jasmine to project

- Added unit tests
- Moved some code out of impactjs to be testable
base href?
http://webdesign.about.com/od/htmltags/qt/how-to-use-html-base-tag.htm