A simple router that binds URLs paths and patterns to functions.