Cleaning up the JNIHelpers
more cleanup
Added a generic list iterator JNIHelpers
Converted lots of asserts to exceptions so they can be properly marshalled to JVM
JNI config can now throw proper java exceptions:
All slave settings now being marshalled. Only the database remains