rewrite several parts which were under the GPL or some other license.

Instead of using GNU Crypto and iWombat, Bouncycastle is now used and
the UUID stuff was re-implemented from scratch.

Also the single sign on (SSO) mode has been dropped in order to remove
the jTDS dependency.