Experimental oauth 2 error response

I did a merge from your master and added return codes and the missing "invalid_scope" error. Note that the copy/paste error is present here - I am trying to isolate changes. Also added underlying error and error codes from the 'failure' block. - my server appear to return 400 codes with errors such as 'invalid_grant'