Moved realms into a module.
Fixes
Format is now set on the API class, not on Sinatra actions