Add restart build API

Reviewers: cf

Reviewed By: cf

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