Ecuador is battling a wave of deadly gang violence and has seen its worst prison riots in history.