Added option to accept or reject stale shares
Published improvements to template_registry.py