Added json loading middleware to recusively merge referenced json files