use oj for json encoding
flash draft status when requirements are not met for new users
Merge pull request #779 from ZogStriP/flash-draft-status-for-new-users

flash draft status when requirements are not met for new users
strip whitespace when changing e-mail addresses

Fixes #778.
Merge pull request #776 from jroes/use-oj

Use oj for json encoding
Merge pull request #780 from jroes/fix-778

Strip whitespace when changing e-mail addresses