package_builder was incorrectly writing components

-lxml tostring would escape attribute values so
things like {{src}} would not work.
-using html5lib to write the output fixed the problem