Tests: Simplify globals cleanup
Tests: Remove use of "testSubproject" helper
Tests: Remove "testSubproject" helper
Tests: More improvments for testrunner

Conform to style guide and simplify it
Build: Use jscs to check test helpers

Also fix issues found by jscs
Build: Add lint task