Add time-bucket aggregation to the analytics tools

Reviewers: sbisker, usmanm

Reviewed By: usmanm

CC: sbw, lydia

Differential Revision: http://phabricator.locu.com/D5500