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