Remove extra queries on apps collection

Using the scope on apps controller will yield lots of queries, so we need to call .to_a
Merge pull request #603 from errbit/remove_extra_apps_query

Remove extra queries on apps collection