Implement filter by favorite in devices and Documents - Fixes #3813
Implement filter by activity in devices and Documents - Fixes #4523