Improve init_postgres.sh
Edit RaintTPL class to remove warning of undefined index in banners
Fix parse_url issues.
Rewrite the video/audio logic, fix two critical vulnerabilities

- Make the video/music logic meaningful.
- Fix two critical XSS vulnerabilities in the code (you have probably seen them).
- More regexps.
Fix the merge conflicts from the upstream repository
Merge pull request #178 from Robertof/master

Rewrite the video/audio logic and fix two critical vulnerabilities
Update submodules tpl/{0,1,2,3}
Improve UTF-8 support. Remove htmlentities in favour of htmlspecialchars. Join validation of users properties in creating and updating preferences. The same for projects. Change database structure. Remove checks about UTC timezone (the setup script set the timezone to UTC). Add migration scripts in setup folder. Various fixes
Remove debug code
Remove wrong setcookie function calls. logout function remove cookie in the safe way
Merge branch 'master' of github.com:nerdzeu/nerdz.eu
Remove blackist control now handled via dmbs trigger
Fix username session variable
Remove twitter closing tag from titles
Update submodule tpl/2
Fixes issue #182
Fixes  NERDZIlla issue #179