add gear-type-frequency endpoint

fixes #274
Fixes #275.
Fixes #276.
Added some padding to the tooltip formatting on bar charts.
Refactored all the buttons on the RespondentDetail page. Added a 'Saved'
confirmation.