Adds support for superseded / deprecated submissions

Nicole did all this coding and didn't update it on the SVN,
so I am updating it now.
Looks like it checks if a submission is superseded / deprecated
and makes a chain of which sub supersedes which up till the
most up to date submission.