TRUNK-3654: ModuleUtil should not treat SNAPSHOT as 999.

Changed max revision number to Integer.MAX_VALUE and added some test for this change

Added back the lines that stipped off modifiers/qualifiers in the loop

Added back isVersionWithQualifiers() method
Merge pull request #980 from geoff-wasilwa/TRUNK-3654

TRUNK-3654: ModuleUtil should not treat SNAPSHOT as 999.