Rename compile to define.
Define match routes directly to functions.
Test cases for routing direct to function.