Complete Blum Blum Shub

If the browser does not support the web crypto API, then rely on Blum Blum Shub
for a cryptographically strong PRNG. The Miller-Rabin test for primality is
used to pick the primes for 'p' and 'q'.