Improve action bar layout; search when submitted

Unbind any previous cards before trying to add new ones
Use a layout change listener to (un)hide items in the overflow when
 there is not enough room.
Search when query is submitted and when it is empty

Change-Id: I93e2f5a35969532b9e2abb42fdda20a8fb1e55b3