Refactor search functionality

Move search action to the fragments that use it instead of implementing it in MainActivity (After issue #6 has been merged!)