cleaning and viewer.js

- finally viewer.js can be required like a module
- switching other js files to CommonJS style
- cleaning up things that aren't needed
more cleaning and more gulp tasks
more gulp tasks
version bump