Updated after code review.  Changed struct names and interfaces to be less confusing. Router now uses precompiled regex specified in config file to convert new url. It also uses pre compiled regex to parse base url for matching in map.