add purge_history.sh and purge_remote_media.sh scripts to contrib/