fix integration test for 307
update head_insert for new wombat
remove redundant host jinja func, use 'urlsplit' instead