replace usage of src_url and pkg_url by package_links, use
html_tail from templates, use count_bugs everywhere, load bugs.css,
fix global variable usage in html header.
replace usage of src_url and pkg_url by package_links, use
html_tail from templates, use count_bugs everywhere, load bugs.css,
fix global variable usage in html header.