Include $errors global variable into $page
Do not use $current_locale global variable

Replace $current_locale global var with CURRENT_LOCALE constant
Fix usage of undefined $mibew_encoding variable
Fix usage of undefined $groupid variable
Do not use $menuItemsCount global variable
Do not use global variables into page views
Pass page templates data through PageStyle::render method