added $request and $response as global objects

We need to access those objects, for example to access request params,
or set response headers. So the controllers can now declare $request
and $response as global vars to achieve this.