complete provisioning function

Implement the expiry time calculation and signing key parameter to
complete the 'provision' function and update the '/provision' action
to read the signing key.