Remove old commented code from jso2.js
Add support for client credentials grant type

* Add config param grant_type
* Split _authorize into _authorize_implicit and _authorize_client_credentials
* Fix some minor bugs with wrong variable names and global/undefined vars.