RAPID: Early Classification of Explosive Transients using Deep Learning