Implemented non-MSCAPI certificate signing
General redesign of certain parts