fixes #222 and any other form fields

There should be no form fields that actually WANT a space… unless a password starts or ends with one.

So I am not trimming passwords, only share room ids and keys, usernames, etc.
Merge pull request #226 from SpiderOak/issue-222-trim-whitespace

fixes #222 and any other form fields