Fix pagination on admins index api.

Also add some tests around the api key hiding behavior on the user show
api.
Fix rubocop warnings.