don't use global token counter
add configurable timeout value (defaults to 30s)
fix broken intergration test
add insert. fix get to support numbers too