Add functions to modify cookies to response class

Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code.

This PR adds some basic functionalities to add and invalidate cookies.

Usage:
```php
$response = new TemplateResponse(...);
$response->addCookie('foo', 'bar');
$response->invalidateCookie('foo');
$response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00'));
```

Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.

@Raydiation As discussed.
In order to be able to kill the big static OC class we should pass the webroot into the constructor https://github.com/owncloud/core/blob/master/lib/base.php#L469 like

```php
$server = new Server(OC::$WEBROOT);
```