Move native code to jni lib
Remove lots of cruft