Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev