Major refactor: switch to native fragments.

Change-Id: I7eff44fc204bd7bf015b69e3d17f466efcdb12d2