Router

Trie implementation + tests
Router using it + tests
Downright ugly for now, will need tweaking