Fix #411 - add a test for rename syncing
Merge pull request #416 from humphd/issue411

Fix #411 - add a test for rename syncing
Improve JSHint settings and fix all issues