improve hackney performance

In the current versio ETS is a bottleneck since all states need to be
temporarely stored there. Instead of storing then in ETS we are now storing to
the local process dictionnary. Since the request is also local to the process
it will also improve GC.
fixes
Merge branch 'feature/local_state'