Make credentials system in Riff-Raff generic

Make credential system more generic rather than tied in specifically to AWS.

This is the first step for allowing deploys for services like fastly and is in fact lifted out of the now defunct fastly branch.