You were demoted and then quit and what should you put on your resume?

What I would do is write the job, but not say anything about demotion or why you were... and don't put the boss of the previous company as a referrer on your resume.