API endpoints default to the repository's default branch, not necessarily master

In some places, the documentation states that the `master` branch is the default value that is used in case the branch/tag/commit is not defined. However, this is not the case -- the API defaults to whatever the default branch is (I checked these calls). Usually this is `master`, but not necessarily so. 

Also, applied some :scissors:-action to trailing whitespaces.