moved route matching to a separate file
also removed some superficial uses of sockaddr_storage and util functions that were rendered useless by these changes