Rewrite UnGag|UnMute code

Moved ungag/unmute functionality to separate functions PerformUnGag,
PerformUnMute.