user: Refactor UserApp.anonymous.

* Move anonymous from UserApp to User.
* Use User.isAnonymous() instead of User.anonymous so far as possible.
massupdate: Fix permission error while updating.
massupdate: Fix a bug issues cannot be unassigned.
assignee: Fix NPE if assignee.user is null.
project: Apply a patch missed at 5e6f22b.