Refactored the whole library to allow conversions

Refactored the whole library to allow conversions
+ new build and dev grunt workflows with watch and unit testing
(jasmine+karma)