Replace source ready flag with loading/ready/error enum
Merge pull request #1048 from twpayne/source-state-enum

Replace source ready flag with loading/ready/error enum