nitg/ffi: move most FFI services from AModule to MModule

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg-g: test use of java FFI across many modules

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg/ffi: mark as private methods internal to compiler_ffi

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
ffi/java: callbacks are relative to mainmodule

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
ffi/java: use C callbacks instead of going straight to nitni (for global)

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
ffi: minor clean up

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
android: support use of -m

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
ffi: fix support for generated calls with generic types (for Java FFI)

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
- Began definition of SharedPreferences class
Merge branch 'ffi-refactor' of https://github.com/xymus/nit into app.nit/androidAPI
- Nit SharePreferences class implemented but not tested yet