Index Theory: The Law, Promise and Failure of Financial Indices