Added an interface for the tests

An interface has been added to run the tests, available at `http://localhost:5001`.
There's actually not too much point in precompiling the template in this case as you're compiling it anyway every time this callback is run. It would be better to precompile the template at the top of this file outside this callback fn.