Changed API

Introduced async_result, iterators and more flexible callbacks