Add option to run java tests with run.py
Java API: fix build warning on OS X

Common part of all source files is extracted to special header
Java tests: print summary for tests run
Enable Java bindings on all platforms by default
debug