Fixes to get sdk-node working against oauthd server

These are the changes I've had to make to get sdk-node talking to an oauthd server, I guess this may break calls to oauth.io but it highlights that things are broken as they are and need a proper fix.