[WIP] Add missing formats

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #2042

Thanks to the great work of @ricardclau, we have almost documented each format where we can in the documentation.

We just need to do the `cookbook/doctrine` chapters and we are ready for merging.

### Questions

While working on this, we had a discussion about the security configuration in xml. In `book/security`, we use this:

````xml
<?xml version="1.0" encoding="UTF-8"?>
<srv:container ...>
    <config>
````

But in the reference, we use this:

````xml
<security:config>
````

I think we use `config` because we put this in `config.xml` and we use `security:config` because we use it in the `config.xml` file? Can some developer explain the difference between these?

### Todo

 - [x] Add formats in `cookbook/doctrine`
 - [x] Add formats in `book/doctrine`
 - [ ] Recheck all formats

### Merge instructions

You should pay attention to the routing example (in `cookbook/configuration/apache_router.rst`). The `pattern` option should be changed to `path` while mering into `2.2`/`master`.