Refactor OpeningActivity to use framework better.

Got Fragment animations, preference dialog saved instance state, and much less code.