Add feature issue#4
Add test for search_controller
Fixed nil:NilClass error
Add debug info
Add appid and afid
Remove appid and afid literal
Merge pull request #5 from matsumo1001/search_issue4

（とりあえずの結果を表示する）検索機能 issue#4