OAK-1856 - Enable specifying of OSGi config via JSON file and in memory map

Added required support and also added Groovy based testcase

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