Change to fragments, multi-tab main activity, history tab, model overhaul

This is the first version to include a counter.
The history view is extremely primitive, and only displays 6 or so entries.
No state is persisted, so it is easy to end up with an orphaned entry.