Implement anon warning in frontend-rewrite

* Remove duplicate message key.
* Introduce various helpers ifAnonymous, linkWithReturnTo, addReturnTo
and user

Change-Id: Ic63f2fd6aed02ba29a7e4ea28260f70ceb11e367