allow to load config from json file

json takes highest precedence and is loaded last
fix plural and embeded
polish pass
Merge pull request #4265 from Carreau/jsoncf

Add support for JSON configuration files