Check for Write Permission

Add canWrite() method to check granted API permission for posting.
Also some documentation added to oauth2.php