route namespace design

design notes for #850

I estimate completing the implementation will take half a day.