remove usage of deprecated generic simple views

Implements our own direct_to_template in the test app. It is
really simple and partly based on what was in the django code
base before.