Further refactoring of activity and TodoGroup Fragment.

Decoupled the activity from the callback handler, and made a private subclass implement handling for the callback.