Refactor modules, cleanup index spec
Re-enable logging tests for index
Add gulpfile to JSHinter
Code cleanup