Revert "Fixes getCandidatesFromMapping on windows"

This reverts commit 9105a03dceb941cbdf17258b37045c795f83fe2a.
Revert "Changes revmap tests to pass on windows"

This reverts commit cb50f531ea659af57fef18f099dd7c295791dbb2.
Add JSCS support.

Also move style checks from JSHint to JSCS.
Fix JSCS issues and make everything more readable and consistent.