Add support for LocalStorage, fallback to Cookies for api keys

Adding support for https://github.com/nelmio/NelmioApiDocBundle/issues/481

Missing:
- [ ] Review
- [x] Fallback to cookie storage
Changed it to a memory object