Generalizes constructor for TestApp

This accommodates the [changes I proposed to WebTest](https://github.com/Pylons/webtest/pull/90), but does not require them. Future-proofing :)