J5: Expand action=purge on flow pages

Converts our old purge.php script into a web request that anyone can perform.

Change-Id: I1d9b19c6d6a71a5beff54b922055868d747ffa25