Update to results template system, lots of updates for sharing templates and also started api integration