Webpack integration and JS declarations fixes
Created by: epiclabsDASH
This PR Fixes the issue related with dash.js and Webpack integration (#2300 (closed)).
It includes MediaPlayer in the main module export, apart from setting it as a property of the dashjs object as we did before.
This PR also fixes the declaration files, that were previously generating issues both in Babel and Typescript based projects. For testing purposes a new sample has been added that shows how to use dash.js in typescript based projects.
Note: Please, note both samples (webpack and typescript one) are fetching dash.js library from npm. This means this change can't be tested as usual until the new version is released and published in npm. In the meantime the way of testing this is retrieving all package.json dependencies as always (npm install) and then, replacing the content of dash.js package with the result of building this PR. Another option is, once this PR is accepted, replace package reference in package.json of these samples with:
"dashjs": "git://github.com/Dash-Industry-Forum/dash.js.git#development"