Sortmerna api

App controller + accompanying unit tests
This looks incomplete. If there is actually an error, just use raise