O'TRAIN: A robust and flexible `real or bogus' classifier for the study of the optical transient sky