make config threadsafe
add with method to dynamically change config
Merge pull request #63 from grosser/grosser/all

make config threadsafe and changeable via with block