Use the new keymanager async API

Needs to merge at the same time than https://github.com/leapcode/keymanager/pull/60