Fixed the operation of the filter/period selectors in the Summary view.
Fixed the display of the "Share" button in the History view.
Fixed various logic bugs in Summary screen.
Stripped-out a lot of redundant code.