introduce inApps[] filter for search via ajax query, make file results show up in files app only

use more flexible return type

check array with !empty instead of count
Merge pull request #12555 from owncloud/app_specific_search

introduce inApps[] filter for search via ajax query