Refactoring and some library improvements.

Refactor remaining error because of ICF_Setting change.
Fix some class indentation.
Improve some method on Base library.
Return error on Database_Access::executeUpdate().
Save some important variable in ICF_Application to ICF_Globals.
Fix error on model directory validation.