Email Framework + Fixes

Set up framework for Emailer and Email Search

Fixes to searchForm with drop-down bug and changed names to functions to
keep them uniform