a (relatively) simple helper template to implement a node C++ addon with asynchronous callback