Entanglement Dynamics in One Dimension: From Quantum Thermalization to Many-Body Localization