use a trie for matching URLs

avoid O(N) prefix matching
Merge pull request #7 from minrk/trie

use a trie for matching URLs