add entity

see #317

i changed one thing in tests to make them pass: `._properties` to `._traits`.
i think we might need to add tests to `Entity` and then add specific tests to `Group` and `User` later on.