Started work on Search Bar

Copied a lot of table view code to its own file.