php syntax clean up

- composer.json : change yii version from 1.1.14 to 1.1.15 (because
1.1.15 contains a major security fix)

- migration file : m140528_101623_insert_lists.php : change hard coded
file path (C:/..., ugly !) into dynamic one. "composer update" won't
failed anymore

- migration file : m140528_101623_insert_lists.php : remove "finally"
clause and replace it by a catch() and clean fclose().

- config/main.php : fix error on modulePath. Was missing realPath()
method. (it will work on unix based system now, not only on windows)

- main index.php : add specific mac os server_name use cvases "::1" +
"localhost" one to be more dev friendly. + add error_reporting(E_ALL)
in debug mode for the same reason

- extensions/helpers/XmlHelper.php : wrong php syntax with end curly
bracket at the wrong place. Fixed it.

- ph/models/PHDB.php : add a verification to check if php driver for
mongoDb is correctly set up. If not, throw clean CHttpException(500)

- site/error view : specify error code. It is not always a 404 when
throwing CHttpException :)