[3rdparty, ajax]: Rewrite the resources parser.

This fixes several key issues:
    - inability to properly decode resource strings,
    - that in turn caused icon, label, etc. to not be displayed,
    - properties defined directly in the manifest were ignored,
    - properties expected to be defined directly in the manifest, were
      not so.