Fixing two problems with our postscribe

- global.document was potentially undefined sice we moved into ADTECH namespace
- introduced decodeHTMLEntities() for script source because in some cases the src attribute is XML encoded
Backporting a fix from the masterfor HTML attributes without value
Implemented queue callback