Prepratory work for cake pattern applied to security

We're having trouble with certificates on Jay's machine.  So working on
implementing the Cake Pattern applied to security so we can easily swap
that out.