SMS: Relative homological algebra