Adds a base purchase times report and substantial refactoring of previous chart and AJAX functionality. Also adds a loading image for AJAX calls.