Add convenience function train and remove train from Net.

Conflicts:

	src/Net.cpp