chore(style): remove trailing whitespace from source files and tests

Routine labour, nothing exciting here. I think I need to use jshint or jscs or something, though.