Move common code into private method, use before_filter
Rename @tags_all to @tags_count because that's how it's being used
Use a relation to build up the query from the common parts
Remove duplicate tags_count code
Merge pull request #312 from sferik/categorization

Clean up categorization method
Merge pull request #311 from sferik/find_tag_and_category

Move common code into private method, use before_filter
merged erik's tags controller and view changes