[NEXUS-5405] Automatically merge group level metadata when "/repodata/repomd.xml" is (re)retrieved from proxy

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5831] Create artifacts/content jars along artifacts/content xmls

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5831] Fix assertions about existing files in P2 repos

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
NEXUS-5838: RRB uses wrong path in case of some index pages.

Code was prepared for two possibilities: that "A" tag "HREF"
attribute contains relative paths (taken from index page base),
or, that "HREF" attribute contains full URLs.

But here we have a third case: the "HREF" attribute contains
absolute paths from the server root.

Hence, the paths were wrongly assembled, as the basePath
element was duplicated in the URL requested from remote.
[NEXUS-5405] JavaDoc

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Merge pull request #128 from sonatype/NEXUS-5405-merge-when-proxy-metadata-changes

REVIEW: [NEXUS-5405] Automatically merge group level metadata when "/repodata/repomd.xml" is (re)retrieved from proxy
[NEXUS-5831] Use Java7 try-with-resource

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Merge pull request #130 from sonatype/NEXUS-5831-p2-jarred-metadata

REVIEW: [NEXUS-5831] Create artifacts/content jars along artifacts/content xmls
Deprecated template accessors, TemplateManager component should be injected where templates are needed.
Components using these methods may cause Guice injection cycles depending on how the components are used.
Merge pull request #132 from sonatype/nexus-5838-rrb-wrong-path

NEXUS-5838: RRB uses wrong path in case of some index pages
Merge remote-tracking branch 'origin/master' into nexus-5695-replace-custom-timing