Support to get/set/delete/generate an HTTP password via REST

The HTTP password of a user can now be retrieved by GET on
/accounts/<account-id>/password.http.

By PUT on /accounts/<account-id>/password.http a new HTTP password can
be generated or set. Directly setting an HTTP password is only allowed
for Gerrit administrators.

By DELETE on /accounts/<account-id>/password.http the HTTP password can
be cleared.

The WebUI is adapted to use the new REST endpoints to generate/clear
the HTTP password. The old RPCs for this are deleted.

Change-Id: I1424f1d4b45e5409095b51f05c9c6afe26e66800
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Support listing the SSH keys of an account via REST

By GET on /accounts/<account-id>/sshkeys it is now possible to retrieve
the SSH keys of an account.

The WebUI is adapted to use the new REST endpoint to retrieve the SSH
keys. The old RPC for this is deleted.

Change-Id: Iea83e77acbc1bb28c2bea0b5a3972b78acb22d62
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Support to retrieve an SSH key via REST

Change-Id: I4deb0d91c702f25ce1896654b80c4c0944ba1cca
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Support raw input for POST requests

So far raw input was only supported for PUT requests.

Change-Id: I95b13fb55cd9426be00f8dc69f4fb46fd6b7ce3e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Support adding an SSH key via REST

By POST on /accounts/<account-id>/sshkeys it is now possible to add
an SSH key for a user. The SSH public key has to be provided as raw
content in the request body.

The WebUI is adapted to use the new REST endpint to add SSH keys. The
old RPC for this is deleted.

Change-Id: I9617ccf19f078f9bcee615803755f445ed68bdc9
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Support to get/set/delete/generate an HTTP password via REST"
Merge "Support listing the SSH keys of an account via REST"
Merge "Support to retrieve an SSH key via REST"
Merge "Support raw input for POST requests"
Merge "Support adding an SSH key via REST"
Support deletion of SSH keys via REST

By DELETE on /accounts/<account-id>/sshkeys/<seq> it is now possible to
delete an SSH key via REST.

Change-Id: I24b849eaa2050377d1432af61cd1717f321313a1
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Adapt WebUI to use REST endpoint for deleting SSH keys

The old RPC for deleting SSH keys is removed.

Change-Id: Ib7021122b2de68c3a2f0ebcc70c3a1459d4c8bf2
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Update the 2.8 release notes with recent changes

Change-Id: I9224ff82b25c70a1afa6870c1364a0003ceda9ec
Adapt WebUI to use REST endpoint to retrieve emails of an account

Change-Id: I637b7e17fc5025460c61be5b1fcda990b22491c5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Support to retrieve the username of an account via REST

By GET on /accounts/<account-id>/username it is now possible to
retrieve the username of an account.

Change-Id: I061dbc2f59920edb7421c6341854a42b36c782ca
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Adapt WebUI to use REST endpoints to retrieve the HTTP password

Change-Id: Iff3c4cf6b8c5e0ed62ffb2bf4fc8cd091b0171ea
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Use REST endpoints in set-account command to add/delete email addresses

This also fixes the bug in the set-account SSH command that it was not
checking whether the realm allows to edit the email addresses.

Change-Id: I8f6cb125e67f7d1046d5bfc1d1aa1439ebf54f08
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Use REST endpoints in set-account command to add/delete email addresses"
Merge "Update the 2.8 release notes with recent changes"
Respect draft visibility when determining visibility of all refs

When determining whether or not all refs are visible, drafts were not
considered. Thereby, non-visible drafts could get pulled, or
non-visible drafts were browsable through gitweb.

As drafts are refs as well, we now check their readability as well,
when trying to determine whether or not all refs are visible.

This change makes 'View Drafts' permission mandatory to use the
internally managed gitweb, as there is no way to hide drafts from
there.

Change-Id: Id064c38986b667d00a8adcfcb4a31fc04f25cc23