associated builds for commit should be destroyed as dependent

Fixes this issue:  https://github.com/gitlabhq/gitlab-ci/issues/511

and

https://github.com/gitlabhq/gitlab-ci/issues/507

Retry builds should use the latest job build commands.


Line is too long. [117/80]