UNICAD: A Unified Approach for Attack Detection, Noise Reduction and Novel Class Identification