OAuth2 RP and AS example done. Fixed a couple of missing things in the OAuth2 consumer/provider code.