Rewrote the extension matching code to work with variables. Now using the Routes library. Change-Id: I361e6e597421bc71ed2cf9ed82516ad8b7bd3a8c
Change-Id: I29552b463c1b93f9e621d4935fd7dcd22fc2b649