Added jasmine to project

- Added unit tests
- Moved some code out of impactjs to be testable
Move all your test related stuff to test folder to keep your project as clean as possible