Add messages count to API response for logged in user details

Allows external editors to alert the user to the fact that they
have unread messages on the OSM site.
Improve tests for user details API responses