Merge pull request #18 from nwinklareth/master

Added general stats processing
Remove slightly buggy code looking forward to improved spinner.
Refactor jail sync to deep copy options and correctly handle JSONP for stable caching.
remove unused mock function
fix fatal bug
Relax histogram
Added male and female stats to average booking per day
Merge remote-tracking branch 'sc3/master'

Merged in changes from sc3 repo.
Added displaying Charges info and a little code reformatting
Initial refactoring of Averages calculation and display
Second refactoring moved data collected about averages into model
More refactoring, using a more functional style. Fixed defect when only one day is selected.
Added displaying stay duration for longest held prisoner and handling of records with no booking date.