Break up SearchEngine.php into a couple of other files

Change-Id: I753eec1d0cf78f2ea08897c7fd3b83f2c88be18d