Move the swagger route pattern matcher to a utility module

Signed-off-by: Rick Copeland <rick@synapp.io>