Replace big_number with generated code, add code generator.

This removes OpenSSL as a test dependency and fixes break in Windows x64 tests.