JS API: Expose logged in user

Plugins may want to access currently logged in user.  For example in
onSubmit() action implementation the user can be warned when she is
about to submit someone's else change:

  Gerrit.install(function(self) {
    function onSubmitChange(c, r) {
      if (self.getCurrentUser()._account_id != c.owner._account_id) {
        return confirm("Really submit change:\n"
            + c.id + "\n"
            + "revision: " + r.name + "\n"
            + "from: " + c.owner.name
            + "?");
      }
      return true;
    }
    Gerrit.on('submitchange', onSubmitChange);
  });

Bug: issue 461
Change-Id: Icec244fa8e07e428e287ff3d90fec3b1f810cf10
Increase max connections per route for acceptance test HTTP client

To prevent tests from hanging when multiple HTTP connections are made.

Change-Id: Ic1ea6961a3df2bfddec7951b468b5db9550612d7
Strip leading #'s from hashtags in POST input

Add a new `cleanupHashtag` method in the hashtags utility class
and use it to remove leading # and spaces from hashtags given
in the input to the POST request.

Change-Id: Ice9e4769af55815da8e225c2500af2ede7703435
Add SSH to configure logging level at runtime

Can configure the logging level of loggers with SSH command. This allows
the admin to change the logging level without restarting the server.

Add additional command to print the logging level of loggers.

Change-Id: I3bd3076bf617607430b86d23ca53d48203afcd76
Merge "Add SSH to configure logging level at runtime"
Add query tests for hashtag: operator

Enable notedb for query tests. Test notedb enabled/disabled for
hashtag in separate methods, so that if the Config is not set up
properly, we will at least see the *WithNotedb method being
incorrectly skipped.

Change-Id: Ie131bdc583a7b902f1310f1b2ccd9df77368e61e
Allow Hashtags searches prefixed with "#".

Change-Id: I9567e5292c84c68ef9b32159da9cc922e553aaa8
Remove "Hashtags" header in change screen

With all #hashtags prefixed with "#", it feels
wasteful to use a <td>-column to explain that
the #hashtags are actually #hashtags. It is
now obvious enough.

Fix: Remove the table header for Hashtags and
rename the Add-button.

Change-Id: I149ded73d5dd3239c46d1320fb3a94b7b38a6e1b
Update Guice version to 4.0-beta5

Beta 5 releases the fix to Cookie mutability bug [1], so that we can
switch again to Central repository and don't need custom Guice
guice-servlet build.

[1] http://code.google.com/p/google-guice/issues/detail?id=806

Change-Id: Ia766f3d9163afdae06ea7c702824909a8349b98e
Organize imports in Eclipse

Change-Id: Ia4979b0d6dcc07e03ab560725007c984d48faf9d
Use javax.inject.Inject instead of com.google.inject.Inject

The Guice team is discouraging use of its specific annotation where
possible, to increase JSR330 compliance.

Leave optional injection alone for now, which needs to be manually
replaced with OptionalBinder.

Change-Id: I4f53a518ba6f36fd67af12f3540dc44cbad07ff8
Allow tests to use hamcrest matchers directly

Break hamcrest-core out into a separate BUCK file, and add dependency
on hamcrest-library, which is needed to be able to use the Matcher
methods.

Change-Id: I15919f674137ce7a50fde6e6ad3422f4887ea306
Remove unused injected IdentifiedUser from ChangeUpdate constructor

The IdentifiedUser parameter injected into the constructor causes
errors when running acceptance tests that invoke operations on the
note DB.

The parameter is never used. Remove it.

Change-Id: I562c0313a0a84daf025315c03d3085b9b3d2c098
Add getHashtags method on the change API

Change-Id: I3098d807da80bc7fa1da6c6451436b45f84a5e2c
Merge changes from topic 'hashtags'

* changes:
  Strip leading #'s from hashtags in POST input
  Increase max connections per route for acceptance test HTTP client
Merge changes from topic 'hashtags'

* changes:
  Add getHashtags method on the change API
  Remove unused injected IdentifiedUser from ChangeUpdate constructor
  Allow tests to use hamcrest matchers directly
Support adding hashtags to changes via git push

Add a new `hashtag` option on the magic branch parser that allows
to assign hashtags to changes when pushing for review from the
command line, for example:

  git push origin HEAD:refs/for/master%hashtag=tag-a,hashtag=tag-b

Change-Id: I13f96e787fc7b653e2078ec83deb77af890a9948
Merge "Organize imports in Eclipse"
Merge changes from topic 'hashtags'

* changes:
  Remove "Hashtags" header in change screen
  Allow Hashtags searches prefixed with "#".
  Add query tests for hashtag: operator
Merge "Use javax.inject.Inject instead of com.google.inject.Inject"