"Parse" SQL dump into statements

It seems the few SQL parsers available for PHP are not supposed to read big dumps.
This one is a very simplistic "stream" parser and works for our dumps but probably
not for yours :-)
whitespace
minor changes in composer db
Remove legacy thumbnail generating code

With this change, files starting with th_ and alt_ will not be hidden anymore.

Sigh, thus ends a history of bad hacks.
Fix scoping in {usecontent} and {list}

This is so bad. I can't believe how it got worse from the smarty2 version.
Merge branch 'master' into dragndrop_nodetree

Conflicts:
	composer.lock
Merge branch 'dragndrop_nodetree' of github.com:aquaverde/aquarius-core into dragndrop_nodetree