Use RequestStore in place of Thread.current

Greetings

I suggest to use `RequestStore` (rack based global data storage) instead of `Thread.current`, which may cause some unexpected behavior with some web servers.

Let me know what you think.
Cheers

For reference https://github.com/steveklabnik/request_store