Format code to fit Ruby style guides.
Fixes a typo.
Extract generating a UUID into a private method.
Adds an AdminAPI class to generate an API to act as a user.