Add the ability to pick up tags from post slug

Fix #20
Move the Widget class to a separate file

Fix #22
Remove old compatibility code

Now all options to `posts_by_tag` function should be passed using the
`options` array
Move template functions to a separate file

Fix #21
Bump up version to v3.1 for release
Regenerate pot file for v3.1