Adapt cnntrainer template
Added CNNTrainer which calls the "train" function from CNNCreator with the specified training parameters. Changed the parameter "device_opts" from the train function to "context". Minor change to test deploy net.
Added CNNTrainer which calls the "train" function from CNNCreator with the specified training parameters. Changed the parameter "device_opts" from the train function to "context". Minor change to test deploy net.