Build: separate apps in cpp/java/(python) examples

* organize SConscripts.
* clean Java example.