Add first revision of StateManager.

A tool for transitioning between Controller-defined states,
using Controller-defined behaviors.
Implement StateManager in MainActivity.

the QuotesFragment was a casualty that I meant
to commit separately, but oh well.
Use consistent comment style.
Define translation of the SearchFragment for state transitions.