A Scalable and Generalized Deep Learning Framework for Anomaly Detection in Surveillance Videos