Allow plus signs and apostrophes in usernames. Also fixed error-prone regex for
group names.

Testing Done:
All unit tests pass.

Reviewed at https://reviews.reviewboard.org/r/5034/
Merge branch 'release-0.7.x'