Callback based asynchronous programing library