refactored crypto system

Added support for Credital manager (remember Creditals functionality)
which is part of the long term goal of integration of several media
sources such as web services.