Move user API to primary document format

Note, this updates every usage of the user API except the one in the update check because there is a problem with the permissions there.

closes #2593

- added new format to user API methods
- changed all places where the user api was used
- updated tests and added more coverage
- little bit of cleanup in utils/api