Remove all legacy gems and re-install RVM/Ruby for root from scratch.

This step is required to avoid confusion and problems after we have switched to RVM managed in the user space.
Pause hostmaster tasks when RVM install for any user is running.
Pause hostmaster tasks when RVM install for any user is running.
Merge branch 'refs/heads/master' into 2.3.x-dev