Support for EARs: Detects META-INF/application.xml

Fixed specs
Merge branch 'jonas'