Add BuildPhase model

Reviewers: cf

Reviewed By: cf

Differential Revision: https://tails.corp.dropbox.com/D38186