Fixed all the errors signaled by JSHint in Shifter.

Mostly trailing whitespace, a few long lines in API docs,
some unused arguments and a few more issues.