Use Pyramid 1.5 external routes for api url

It should no longer be necessary to set the app url here or declare
it a static route.
Add back the pidfile option to the test run