draw device factory and resource interface

added simple factory for draw devices
created simple rough interface for resource subsystem