This is another continuation of #64 and #248 implementing JNI library for secp256k1, rebased to master.
Also it includes a fix for a bug we noticed while including it in GreenBits - buffers were overflowing if two different functions were called consecutively with the second one needing more buffer space.