How a Roth IRA is operated

How contributions are made, how conversions work, and the ordering rules that decide which money comes out first.