Actually pass in the search parameter.
Fix some formatting and remove some debugging in the search controller
Cleanup the search template