Added a new module that contains the abstract interface for the batch trainer and replaced some dbn code to use it