Fix #2

Also moved #headers to Replicate.all_stages.
Move the chart and table stuff into a 'partial'