implementing rebuild ability

In support of: https://github.com/martha-ci/martha/issues/31