Implement authentication via client credentials

Implement authentication via client credentials (for resource servers) when running under Node.js
1 char indent here too