Abstract transient key and expiration key

This changeset changes the default expiration to be 6 hours, and disallows
anything shorter than 10 minutes.