fixed versionAllToTable() to work with CDbCriteria and also not be quite so lame
Merge branch 'develop' of github.com:openeyes/OpenEyes into develop