FORGE-1134 Fixing resolution failures for secured repositories

If a repository is defined along with a server configuration
element in settings.xml, then any username and password settings
configured, are used for that repository.

Additionally, any activeByDefault profiles are treated as active
profiles with this fix.