Go back to external build system for Android ...

1. Go back to the external build system for Android

2. Fix plugin loading problems

3. Move JNI code into a separate shared library.