Search method responding to JSON
Added jbuilder to render commands json for search