Advanced key management

It depends on https://github.com/leapcode/keymanager/pull/30