router: Support wildcard routes, up to 5 levels deep.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Merge pull request #281 from flynn/wildcard-routing

router: Support wildcard routes, up to 5 levels deep.