I think he was able to see you in a new light here. Not his hanger-on, an independent woman who could appreciate him as her friend. I think a lot of times he missed that in the grand scheme. As for Cosette...I don't know that she ever truly hated you. You were a by-product of her lifestyle. I feel she'd understand that, in time.