Update plpaste

Three commits to get plpaste working on refresh.