Refactored BigInteger-dependent code into a subpackage

Sign/verify tests fail, but all other tests pass. The problem is probably in
ScalarOps somewhere.