Basic version for the issue #5. If need more, create another issue.
Making some refactoring based on @elizeu comments. Second try to close issue #5
Merge pull request #6 from nigini/issue5

This basic version will log (in table tags_hits) every access to page tags.php, meaning: user, timestamp, used tags.