Basic Entity support.

Expose a few fields, which can be substituted in for Tokens
(in Rules).
Merge pull request #248 from adam-vessey/7.x

Basic Entity support.