#541 Added 'dist' task to gradle plugin

@pkriens and @bjhargrave, could you review this? Because the Gradle tasks are very visible to users I didn't push this to master immediately.