Add ArcTanLoss, TolerantLoss and ComposedLossFunction. Based on work by James Roseborough. Change-Id: Idc4e0b099028f67702bfc7fe3e43dbd96b6f9256