Add base classes for common functionality. Add debug resources structure.