Hitting "Search" hides keyboard (Closes #34). Small refactorings.