Added SessionExpiryListener to deal with session timeout
Bugfix: script cannot be async if it has no src
Fixed comment
Added session parameters
TODO: take a look at AdvancedUserInterface