Handle, verify and cache entity capabilities.
Update tests.
Update example.