TIM-435: Prevent whitespace-only submissions

Uses jquery's trim, which should make us work in every browser.

I checked all the inputs, but the only one we were doing any not-null validation on was the submission box, so it's the only one that gets trimmed and tested.

@wedaly or @stephensanchez