Fixed notices, added supression of php errors when DEVELOPMENT env is set.
Eliminated direct using JController