Simplify tests for stdin

Closes gh-596
Fixes #547
Add checkStdin method

Closes gh-594
Fixes #577
Add "safeContextKeyword" to jscs config