Upgraded for newer versions of Node and Q.