Tidy up "pkg_mgr.php" XHTML

Add closehead variable, move scripts into HEAD and manaully close head.
Close BR tags
Move NOWRAP to class statement
Deprecate ampersand in ANCHOR tags
Change target in ANCHOR tags to "_blank"