Make Redis and Sentinel version detection code DRY
Spinoff from !3796 (comment 262723266)
With !3796 (merged) and !3825 (merged), we added code to compare running and installed versions of Redis and Sentinel to show a warning to users if they differ. However, the current implementation involves a lot of code duplication, which can be extracted to VersionHelper
and made DRY.