add domain#openMethod() and add q support
Automatically rewritten for npm.