Added versionCompare function

Have used this function before, but untested in this titanium module.