Unable to scale up or snapshot an app

Application.find_by_user is broken, add test and correct it.
Merge pull request #3368 from smarterclayton/find_by_user_broken_on_app

Merged by openshift-bot