Abstract common qunit install steps

Both qunit job templates uses almost exactly the same sequence of
builder, so make it a new builder macro 'prepare-mediawiki-qunit'.

Change-Id: I95901329c170b0d533e06c200381c3a8fad2633d