Fix for Joyent tests: BouncyCastle initialisation should happen a bit earlier. Also some clean-up.
Merge pull request #12 from maksimov/2013.07

Fix for Joyent tests: BouncyCastle initialisation should happen a bit ea...