update perma to work with pywb 0.2.2

also add pywb head inserts which support rewritten javascript that attempts to intercept leaks to live web