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
this still suffers from the issues I reported previously