Add the user stats api endpoint.

- Add docs for the new endpoint
- Add the api endpoint to return user's bookmark counts

This is a cleaned up merge from Sambuddha Basu. All credit to him and his
work.