Implement method that reads vendor libs from core.json

* includes them at the beginning of initTemplate()
Merge pull request #11946 from owncloud/load-vendor-from-core-json

Implement method that reads vendor libs from core.json