[WFLY-3320] : Deployment scanner treats zipped content as managed.

When the deployment scanned is an archive then it is added to the content repository just like a file would be.
Jira: https://issues.jboss.org/browse/WFLY-3320
Replace https://github.com/wildfly/wildfly-core/pull/47