SLING-3384 Create AbstractSlingRepositoryManager and AbstractSlingRepository2

- Also create new NamespaceMappingSupport base class allowing for better
   integrations going forward
- AbstractSlingRepository and AbstractNamespaceMappingRepository are
   deprecated


git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566547 13f79535-47bb-0310-9956-ffa450edef68
SLING-3384 Reimplement SlingServerRepository

Move repository creation out into a new SlingServerRepositoryManager class
(extending AbstractSlingRepositoryManager) and the old SlingServerRepository
class just implementing the createAdministartiveSession method.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566551 13f79535-47bb-0310-9956-ffa450edef68
SLING-3384 Reimplement OakSlingRepository

Move repository creation out into a new OakSlingRepositoryManager class
(extending AbstractSlingRepositoryManager) and the old OakSlingServerRepository
class just implementing the createAdministartiveSession method.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566553 13f79535-47bb-0310-9956-ffa450edef68
SLING-3384 Adapt Repository integration tests

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566562 13f79535-47bb-0310-9956-ffa450edef68
SLING-3384 Adapt Repository integration tests

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566565 13f79535-47bb-0310-9956-ffa450edef68
SLING-3359 - Classloader Leak Detector Console Tab

adding some comments and also ensuring that PhantomReference are properly cleared

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566596 13f79535-47bb-0310-9956-ffa450edef68
SLING-3045 - [logback]Warning logs logged for 'No appenders present in context [sling] for logger'

Instead of removing the console logger asscoaited with root logger by default we check now if root logger has any appender associated with it or not. if not then console logger is not removed

Also moved this logic out as a separate listener and ensure that this listener is invoked at the end of config cycle.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566597 13f79535-47bb-0310-9956-ffa450edef68
SLING-3045 - [logback]Warning logs logged for 'No appenders present in context [sling] for logger'

Adding more logs for debugging case when a failure occurs

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566627 13f79535-47bb-0310-9956-ffa450edef68
SLING-3045 - [logback]Warning logs logged for 'No appenders present in context [sling] for logger'

Adding more logs for debugging case when a failure occurs

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566634 13f79535-47bb-0310-9956-ffa450edef68
SLING-3322 - Export additional mozilla rhino packages

In addition also version the export.
- org.apache.sling.scripting.javascript at 0.0.0 -> 0.1.0
- org.mozilla - 0.0.0 -> 0.0.0.1_7R4

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1566989 13f79535-47bb-0310-9956-ffa450edef68
SLING-3359 - Classloader Leak Detector Console Tab

Adding a help message incase the JVM is not started with required VM options

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1567043 13f79535-47bb-0310-9956-ffa450edef68
SLING-3387 Fix potential NPE

Applying patch by Michael Dürig (thanks alot)

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1567598 13f79535-47bb-0310-9956-ffa450edef68
SLING-3391 Don't get stuck if event does not arrive

Timeout is specified in seconds not milliseconds. So asking for 5000 essentially
waits 5000 seconds or almost 1.5h for an event to not arrive

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568208 13f79535-47bb-0310-9956-ffa450edef68
SLING-3391 And fix the commit

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568209 13f79535-47bb-0310-9956-ffa450edef68
SLING-3320 Fix ClassCastException on service unregistration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568213 13f79535-47bb-0310-9956-ffa450edef68
SLING-3380 Make sure added, changed, and removed properties are actully
   added to the ADDED event otherwise this information is lost and depending
   event consumers may fail (e.g. the ResourceResolver mapper supporting
   Vanity Path mappings)


git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568214 13f79535-47bb-0310-9956-ffa450edef68
SLING-3394 - fixed agent passive mode checks

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568311 13f79535-47bb-0310-9956-ffa450edef68
SLING-3395 - event based reverse replication via Server Sent Events

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568345 13f79535-47bb-0310-9956-ffa450edef68
SLING-3389 : reduce write activity of discovery heartbeats by using clusterview for announcement expiry of non-local instances (of the same cluster

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568350 13f79535-47bb-0310-9956-ffa450edef68
SLING-3389 : removing unnecessary commit() calls

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1568912 13f79535-47bb-0310-9956-ffa450edef68