Compatibility to Bouncy Castle 1.51

API to deprecated and removed BC methods were refactored. Also
license.java was refactored to look a bit nicer. Some methods are still
complex and too long.
Utility class Sugar was added to the util package to contain some
syntaxctic sugar methods. Also hardware binger now uses a method from
this class that was originally private in HardwareBinder