May fixes security bulletin typo3-ext-sa-2014-010 and minor cleanup

As there is no detailed information of the found vulnerability we scanned the whole code.
No warranty in any way...

* integrated compalitiby note to ext_emconf.php
* formating ext_tables.php and ext_tables.sql
* cleanup orphan functions
* cast parameters for select in mod1 to prevent potential sql injection in backend
* cast parameter to integer in pi1 for tt_news links to prevent potential cross site scripting
* extends changelog