[browser test] Moving shared code to mediawiki-selenium Ruby gem

Bug: 53579
Change-Id: I4ef8b63f485b0274f252cf95e566f0484615e8cf