OF-796: Implement numeric version comparison

Update the Openfire version checker to compare versions based on the
numeric value rather than the string representation of the versions.

Note the Version.java class was copied from the corresponding Openfire package.