remove unnecessary horizontal rules
add foundation favicons
simplify some logic and output with html_writer