Load link() function and add twig extension

There is a circular reference ... so tests are failing, and I am lazy today, so here's my temporary work.