OAK-1915: TarMK failover 2.0

Added test cases, improved client recovery from crashes, tweaked OSGi config handling.


git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1624551 13f79535-47bb-0310-9956-ffa450edef68
OOAK-2095 - avoid ClassCastException by accepting Long values from the persistence as well

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