fixing embed spec
templated_url method refactoring
xhtml serializer refactoring