Added support for state and scope in OAuth2 class.

Changed syntax for URL variables in Router class.
Added examples for OAuth2 and Router classes.