Test case fixes for Origin:

  * Use PHP_VERSION and MYSQL_VERSION instead of hardcoded values
  * Register test accounts before using them
  * Set max gear limits where assumption of 3 gears is made
Merge pull request #3871 from kraman/bugfix2

Merged by openshift-bot