use a trie for matching URLs

avoid O(N) prefix matching
test url trie
Merge pull request #8 from minrk/trie

use a trie for matching URLs