Provides common security functionality for OSCARS clients.
Probably will still need some reworking.