Reworked routing

Setup a route resolver and handling anonymous routes. Also updated
packages.