Light refactoring of search controller.
Light refactoring of record controller.
Light refactoring in record list view.
Irons out some hard-to-follow flows in the search module.