Adds some tests, route hanlding, and templates