EXP-123. Define a trait users can extend to implement their own train phase.

issue: https://jira.kiji.org/browse/EXP-123
review: https://review.kiji.org/r/872