Moved code for searching to model and re-worked everything that passes
so that it accepts plain lists instead of querysets. Also it's possible
to search for single tag at the moment.