Initial attempt at supporting deprecation of versions.

This is still a work in progress, but I'm putting it up in a PR in case people want to look at it.

Refs #304