added auto sync data when application will enter foreground
stats table view cell fixed
sorting for item headers in item controllers defined
added pull to refresh in stats controller
preventing loading views in tests environment
incorrect tests updated