Remove debug prompt and bring back full JS list in localhost

Remove debug prompt and bring back full JS list in localhost. Fix https://github.com/alterm4nn/ChronoZoom/issues/536

Added a JavaScript environment variable that can take the { localhost, test, production } values. This is used to decide to load all the script files or the single cz.js one.

Changed pages to API interactions ot be in-proc to improve performance and avoid debugging  prompts.