Added examples for OAuth

The first commit is additional code for the `oauth.js` to allow the use of interval (if you don't want or if you're not able to create a callback.html) which will check the popup location hash for the access_token and if found it'll parse it set the cookie, close the popup and refresh the opener window.

The second one are two examples for the oauth flow, one with callback.html and the other one without.