(minor) keep window focus during running qunit with selenium

Change-Id: I6dafd367dec4dc33d3ecab2919de0a3188961bca
(minor) Snak.toJSON() now uses 'snaktype' instead of 'type' for snaktype

Also updated tests. This has been wrong JSON generated before since the server side gave the type as 'snaktype' field some time already and also the wb.Snak.newFromJSON() JavaScript function assumes 'snaktype'.

Change-Id: I52dc89b6bdcb389c23fabe0420d7601e1788d04a
Merge "(minor) keep window focus during running qunit with selenium"
Merge "(minor) Snak.toJSON() now uses 'snaktype' instead of 'type' for snaktype"