Fixing gradle build script to ship bouncycastle library separately.
Adding support for running without encryption library present.