Node sdk enhancements

A series of proposed fixes and enhancements based on experiences using the SDK in the apigee phrixus project (https://github.com/apigee/phrixus)