Upgrade to Gradle 1.6 and resolve deprecations

This patch upgrades Gradle to 1.6 and resolves related deprecation
warnings.

Issue: GAP-144