Improve build process
Move Jasmine to vendor directory and bump to version 2
Refactor and replace old tests
Add refactored core code including complex numbers