Merge Git branch 2.11.9_js_docAndRefactoring to this branch.

git-svn-id: https://energine.googlecode.com/svn/trunk@2812 acdd3125-bb50-0410-93b3-95ffde4b7c7d
First documentation to *.php

git-svn-id: https://energine.googlecode.com/svn/trunk@2813 acdd3125-bb50-0410-93b3-95ffde4b7c7d
Rollback to r2811

git-svn-id: https://energine.googlecode.com/svn/trunk@2814 acdd3125-bb50-0410-93b3-95ffde4b7c7d