Refactor platform loader to be debug by default

- `platform.js` will now load in debug mode by default
- passing the `build` flag, either with `?build` in the url, or `<script src="platform.js" build>` will load `platform.min.js`