Cause template to fail on script errors. Init properly. Update resources for elasticsearch version 1.