Checker: checks stdin. Fixes #577

Allows us to clean up cli.js and the stdin checking functionality fits nicely in checker.