passing of parameters in PathMatcher
dispatcher interface removed unused function
dispatcher class added
dispatcherinterface updated
added implementation for dispatcher
added tests for dispatcher
fixed up and added optional test