create debug class

debug supports logging system.
it'll also support system information tracking functions soon.
resource interface has been changed

user defined resource should have inherit IResource and IResourceLoader.