Using scoped thread local (WIP)

Closes https://github.com/PistonDevelopers/current/issues/49
Fixed doc comment
Merge pull request #52 from bvssvni/scoped

Scoped