use standard way to have nested extensions

see
http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtensionAware.html
for reference and
http://forums.gradle.org/gradle/topics/conventionmapping_woes_what_am_i_doing_wrong
for discussion