Adding jshint and npmignore
Added a simple changelog
Initital tests added

Lots of cleanup to fix jshint issues