Added changes without overwriting tests.
Posting entity instead of just the entity properties.
Cleaned up cruft in entity.