added optional callback to setItem
Merge pull request #13 from akhoury/master

added optional callback to setItem