1001327-headpin-perms - remove environment related permissions during upgrade

Two changes:
1) remove environment permissions from roles during upgrade of headpin (thanks @partha)
2) corrected elasticsearch index for user_own_role (thanks @jsherrill)