Updated gradle build files for gradle 1.3; WARNING: may not work for previous versions; also some build improvements to depend on certain tasks from all subprojects listed in settings.gradle