Incorporated code from argus.

This version of the argus code corresponds to commit
7447dc5496accd4cb084b4a986d9e509257b204b
on the "contained" branch of the argus repo (which is
currently visible at
	https://github.com/OpenTreeOfLife/argus/commit/7447dc5496accd4cb084b4a986d9e509257b204b
though that repo will be deprecated soon).