Template init

As usual I start with one goal and I end up changing completely unrelated things... lol

The original goal of this branch was this commit:
https://github.com/emanuele45/Dialogo/commit/f01fc571ccc23b6bceb6ed63493e28b042b0634f
it doesn't give any direct advantage, but I always hated it, so... :innocent: 

Then, removing an if [here](https://github.com/emanuele45/Dialogo/commit/ca409af9ecedfa5f8532060176438122e442fb54) I tried to change it to:
https://github.com/emanuele45/Dialogo/commit/c2706b83affc0e4847f2aa6f86911ff210b8638c
I'm almost tempted to get completely rid of ```$db_character_set```, but I'm not sure, so let me know what you think. ;)

Then, while playing with polls I changed a bit the template here:
https://github.com/emanuele45/Dialogo/commit/05dc5422a29f67ebbb8a3846184898f3f25bbb03

The rest are mostly fixes, and as usual more bugs. :P