Upgrade check

Implements the basic compatibility check code required for https://github.com/joomla/joomla-cms/issues/598