Changes to allow url of awe in javascript to be completely configurable ...

...and allow for https.