EE2.6 compatibility update: updated deprecated functions

Replaced [remove_double_slashes] and [set_variable], with backwards compatibility. Took me a while to figure out why it wasn't working, but you need to turn off gzip compression in EE if you get a 330 error after changing this.