Convert custom study dialogs to DialogFragment

Some maintenance to clean up `StudyOptionsFragment` and also implemented [issue 2367](https://code.google.com/p/ankidroid/issues/detail?id=2367).

I think it's useful to include this in 2.3.1