A simple pattern based router.