The (co)tangent complex, derived intersections and cobordisms