Switch to CommonJS source with UMD build

Switch to Gulp
Add Karma
Add test coverage
Bump to v1.0.0-beta
Remove dependence on core classes for tests
Remove demo
Remove redundant IIFE
Fix error in API example
Bump to v1.0.0