build.scala cleanup (preparation for fixing android-tests paths)

Some clean-ups to build.scala. Especially, I separated settings common for
android and android_tests into android_common references by both, also copying
needed jars and shared objects into android_tests as well.