ui-router fix

move parameters() and format() from IUrlMatcherFactory to IUrlMatcher.

Also adds tests for IUrlMatcher