Tidy up "pkg_mgr.php" XHTML

Add closehead variable, move scripts into HEAD and manaully close head.
Close BR tags
Deprecate ampersand in ANCHOR tags
Change target in ANCHOR tags to "_blank"
Merge pull request #523 from ExolonDX/branch_17

Tidy up "pkg_mgr.php" XHTML