client: move from create_app() to views; allows view to use the local client without being overridden by a parent's app.client