New reorganization

 * Rearranging the resposibilities of some classes
 * DialogQuery becomes QueryPresenter
 * More flexible filtering posibilities in the UI