Autoload the ErrorHandler class

+ some fixes to cc
Delete the old errorhandler file