Refactored to add test code
added URIMatcherTest
Added PatternReplacer tests
Added URIRewriterTest