Added Tinytest and Travis.ci support

1. Updated package.js with test environment
2. Added tests for Tinytests
3. Added travis.ci support
4. Update .gitignore to ignore test jigs
5. Added directives to .js files to keep JSHint happy