Add controller action to handle single search result

Single search results will redirect from the index view to the show
view for that single result. Otherwise the devices view acts normally.