New async API

XXX: half done, openpgpschema works