Big refactor to the original tv4 library. Made it more commonJS compliant and changing the tests over to Karma.