Change object __str__() to use pretty formatting

Use the EntityFormatter framework to generate str() for objects,
and render them using prettytable. Replaces the old manual __str__()
method.

Change-Id: Icf6f37f4a677595f3aaa8d305c2c8cd4676e72fa