Fix ArrayIndexOutOfBoundsException when merging state drawables
Fix style issues; remove dead code; model cell period selection state as an enum.
Rebuild period state correctly when calling getMonthCells()
Add unit test for period state feature