api/models: exceptions should inherit from Exception, not BaseException

Three bad things together: exceptions, inheritance and me.
api/views: what's app?