Removed performance test since it's not used.
Upgraded to Rails 4
Replace usage of deprecated activerrecord methods with querymethods.