Don't assume all entities have an 'id' value

Summary:
- Provide a getId method on entity classes to return a unique id.
- Use this method in AuthorizerTrait

Test Plan: bin/behat

Reviewers: shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D448