"He does, as one poster points out, like me when Im on "the up" so to speak and when times get tough he tends to withdraw from me to a degree"
If a friend only spent time with you when you were all happy and full of light, they'd get short shrift - in my world, at least. Fair weather friends can't be trusted.
You're lacking two major elements of a successful relationship - trust and respect. You can't trust him to treat you fairly, and he shows you no respect.
"How do I get past this?"
You don't. He might. But don't count on it!
The only control you have over someone else is in your reaction to their behaviour.
Chances are, once you stop crawling round him and actually detach and tell him to fuck off to where he deseves, he'll realise what he's losing and swing back again. You need to remember how he was now and not simply give in to his monumental sulk by taking hiim back.