Move html5lib serializer into test runner script