[1.1] MODULES-154 Support layers and add-ons

A 1.1 variant of https://github.com/jbossas/jboss-modules/pull/25 in case we don't want the other changes in master in AS 7.2.