Add custom tooltips

This is a re-push of #16

Added the ability to set config.tooltips to a function which generates customized tooltips

If this field is a function (instead of boolean), it will be passed an object with a `value` field, and (as a best effort) `index` and `series` fields. The function must return a string which will be the contents of the tooltop.