Capabilties api using webpack. It uses the script loader to load requirejs and exposes it globally. A Promise wrapper around the capabilities api to be able to require it commonjs style.