Added export functionality to pivotUI

Hello Nicolas,

Thought I might contribute to this fantastic library of yours. Added an optional field to pivoutUI in which the user can export the table. 

I had to normalize the table before being able to do this, as it got quite difficult due to the rowspan/colspans involved.

Feel free to merge, if you so desired