He's treated you like utter crap....and you think by changing yourself he is going to change??? This is what you are saying... we are saying it doesnt work that way!
He has told you straight up the way he feels about you...listen, men talk straight if they have something to say, you dont even have to try and guess here, it really is black and white!!!
Now the best thing you should do is to re-gain your confidence back and find someone new and that loves you for exactly who you are. Put this guy behind you and not for any reason take him back. Tell yourself you can and will find better.
Yes it's hard and for some crazy reason all you will remember about the guy will be the positives, even if there are few...your mind will try to trick you into believing he is the one but CLEARLY he is not and you need to forget him completely!!