Add authentication functions.

This allows users to hook into the context system to check
authentications.
Add Present method to check secret names.