Added train collision modes, and reshaped general collision handling

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>