aps_package: various fixes

* handles unstructured text in references.

* adds external links in references.

* kwalitee fixes.

Signed-off by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>