Implement Api ResultBuilder and basic tests

This takes the logic of adding bits of entities to
results out of the API base and puts it in its own
result builder class.

Change-Id: Ic25fcef8632952266d9c9768944b03bb8636c6cb
Merge "Implement Api ResultBuilder and basic tests"