Store API test data in objects rather than an array

This will enable us to pass Entity objects directly
to mocked services.

This change also deprecates the majority of the
other functionality in EntityTestHelper

Change-Id: Ifdd5b2900807bce33fed27285663bdc92a1b8507
Merge "Store API test data in objects rather than an array"