Align search form in selector dialogs

I align the search form in selector dialogs to right and change the bold
search button to an icon (magnifier).
Codenarc fixes

First, I upgrade the codenarc plugin to version 0.19.

Then, I fix some problems reported by Codenarc such as unused imports.