closes #2196
Substantially rewritten, based on original content by Brian Clarkio and Ward Bell and contributions from Naomi Black.