Switch custom actions to js router

Change a few searches to return arrays; fix toArray for array input;
remove unused actions