app_main/app.htm: cleanup and backend fix

* fix stylesheet single <link /> tag
* pre_load(): use more closure features
* start_good(): check and load script with one request.
  Also HEAD is wired verb and has issues on 'file://' URLs.
* JavaScript is one word