Moved Ruby code that multiple repositories use to mediawiki_selenium Ruby gem

Bug: 56088
Change-Id: I7af61179ad5769252af48328cc36510dc3767edf
Merge "Moved Ruby code that multiple repositories use to mediawiki_selenium Ruby gem"