Evolution of the Red Sequence Giant to Dwarf Ratio in Galaxy Clusters out to z 0.5