Use WikibaseAPI to create new entities for selenium tests

Change-Id: Iea0982751c61236408479741c8e2fc08878ca541