JP Morgan is close to a record $13 billion settlement with the Justice Department over its role in the crooked mortgages that led to the 2008 financial crisis.