EXP-386. Add EntityIdSpec to improve the inclusion of entity ids in flows

issue: https://jira.kiji.org/browse/EXP-386