(CFACT-12) Implement external facts in JSON files.

Implementing a JSON external facts resolver.
Adding scoped_file to scope FILE*.
Fixing tests where ASSERT_EQ was used for doubles (ASSERT_DOUBLE_EQ should be used instead).