initial work

Adding support for https://github.com/nelmio/NelmioApiDocBundle/issues/481

Missing:
- [ ] Review
- [ ] Fallback to cookie storage
instead of checking it inside the function for each call, do the check outside the function definition, swapping the function to a noop