Move JNILoader to commons as we will use it for other modules in the future