Add ability to scope routes based on hostname. Closes #489