NEXUS-5472: Smaller fixes and javadoc.

Getting rid of warnings.
Also, merging ES fixed to merge once and provide same result
over and over again, to lessen the possibility of having a "window"
where group members reported as having WL and actual publishing the
group WL
NEXUS-5472: Strategy refactor

Lessen code duplication.

Also, lessen warnings, added javadoc.
NEXUS-5472: More tests for reading pref file
NEXUS-5499 reintroduced missing js files used by ?debug

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
NEXUS-5472: More UTs and fixes

Those are:
* added UTs for two more classes
* changed how EventDispatcher is started
* flipped default value to the intended one (UT fixes in master incoming)
* some minor fixes
UT fixes.

Not changing their semantics, but actually making them more correct.

* RemoteAuthTest: it does not matter where auth is set for reposes, but
  once proxy404 comes it, it will matter, as without auth the proxies
  autoblocks (rightfully, as it is basically wrong config).
* RemoteStorageSettingsInheritanceTest with proxy404 revealed a nasty bug:
  "change detection" was very wrong, when child generation ran away from
  parent value (as is case with proxy404).
Merge remote-tracking branch 'origin/master' into nexus-5472-proxy404