Load EPSG:21781 definition from cdnjs.
Implement ol.source.WMTS.optionsFromCapabilities

and remove related ol.source.WMTS.createFromCapabilities function.