move RELEASE & INTEGRATION version mapping close to pom parsing

- don't let this version syntax leak into gradle

+review REVIEW-5225
Add integration test for resolving transitive dependencies declared with RELEASE or LATEST

this exposes an issue (related to https://issues.gradle.org/browse/GRADLE-3097)
+review REVIEW-5225