Change API to be sync

the callback argument is remove from read() and write(). read() returns the config object-reference.

this is an BC break and fixes #1