Rearrange query menu item-related angular code
Change filename of query menu item directive


The file also contains the factory that is responsible for creating new query menu items on the fly.