Added optional Instance to retrieve

Modified the retrieve callback to all you to instanciate your callback
to an object, rather then calling it from the window function.,
Merge pull request #7 from iargue/master

Added optional Instance to retrieve