Added feature of state save for groups and contact stats for screen rotations.

Added beginnings of interval statistics collection, including data export for off device analysis.