nnir.el: Major rewrite. Separate searching from group management.