Sanitized RepoApi.js

Added some documentation and removed unnecessary one;
removed/replaced now obsolete getting repo token.
Logging failures is not required as it is supposed to be done
by the native mw.Api.

Change-Id: I171db949bdec7fc56228023d0f449301ec470b12
Merge "Sanitized RepoApi.js"