[promise] Mock Github API calls in doc examples
[promise] Mock API use in simple example
[promise] Expose the mock functionality as error handling
Merge branch 'dev-master' into dev-3.x