Understanding Electrodeposition Instabilities