[BUG #7325] make the check url of active_reload.js dynamic
[BUG #7325] some preps to run main app through another web server

- issue remaining is the SOP violation when accessing the sentinel url
  from the client script, as this is on another port