Extend the tabs macro to allow tab contents to be templated
Improve revision history tabs