Add pagination to list of users.

This pull requests adds simple pagination to the list of users. At some point, it should be improved, so that it doesn't go below page 0 or above the maximum pages available (which is exposed in the JSON response), but I consider it a "nice to have" for now.