Fixed unit and functional test, upgrade to last symfony version 1.4.20

Code and tests were fixed and now all the "prove" tests pass. Moreover the symfony version is updated to the newset version 1.4.20 (submodule repo was moved from diem-project/symfony.git to symfony/symfony1.git directly)