omapi: add support for key auth; improve functionality