Universality in spin models, automata and neural networks