Upgrade to bouncycastle 1.51
Merge pull request #177 from benmccann/bouncycastle-1.51

Upgrade to bouncycastle 1.51