Modify SearchController and related routes to suit owncloud 7