Data Model Reform.

Remove dependence on sproutcore data store.
Simplify data paths where possible while leaving
view layers, as much as possible, untouched.

Squashed commit of the following:

commit b3cc5322ad50bbf1261779fc54235b03e70f3ff5
Merge: 74c425b 10a8a08
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Mon Nov 10 14:22:54 2014 -0800

    Merge branch 'wip-data-model-reform' into wip-opt-case-model

    Conflicts:
    	apps/dg/controllers/data_context.js
    	apps/dg/models/attribute_model.js
    	apps/dg/models/case_model.js
    	apps/dg/models/collection_record.js
    	apps/dg/models/component_model.js
    	apps/dg/models/data_context_record.js
    	apps/dg/models/document_model.js
    	apps/dg/models/global_value_model.js
    	apps/dg/tests/controllers/test_collection_client.js
    	apps/dg/tests/controllers/test_document_archiver.js
    	apps/dg/tests/models/test_attribute_model.js
    	apps/dg/tests/models/test_case_model.js

commit 10a8a08aebcfb64588341cd3ff7435e3b77cca4b
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Mon Nov 10 13:58:26 2014 -0800

    Squashed commit of the following:

    Additionally there are some changes to clean up JSHint kvetches and
    Changes to export mechanism.

    commit 74c425befb1c236ca5fbee4592ed0f128ad8c206
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Mon Nov 10 11:57:44 2014 -0800

        Delete records should use standard data context method for accessing cases by ID.

    commit 43f71d6d699dec99855e74d053935e61944bb105
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Mon Nov 10 09:05:13 2014 -0800

        Clean up code.

    commit 6624ffdccb0948cba444771f80f10882aac2c7ab
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Nov 9 20:07:44 2014 -0800

        Rename toJSON to toArchive for historical reasons.

    commit 84afd3f368646af5588afb8b618e02cfb83466fc
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Nov 8 19:17:51 2014 -0800

        Move toLink method from DG.record.

    commit 1e3fe9d6b5e54b59e5193935bbc14a03a552e0e4
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Nov 8 18:13:10 2014 -0800

        Handle prevAdapters sometimes null in case_table_controller reset.

    commit caec93f207339206d45f58cc41a9d443204c488e
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 21:57:06 2014 -0800

        Fix incorrect argument list in invocation of getCaseByID in PlotDataConfiguration.

    commit f1f2b2d8876d442ad61851328342b2118097d37e
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 17:47:45 2014 -0800

        Fix GameContext's ability to find and assemble collections.

    commit 47272300b0055044dfe6e847bfc6ed5bdc816a82
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 17:43:15 2014 -0800

        Correct test descriptions.

    commit 281a299bf83c53930114850611875571de1c9334
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 16:40:36 2014 -0800

        Creating a child record creates a reference in parent.

        This fixes an issue where selecting a parent case was not selecting its children.

    commit 4475464b155bf28aa996362030c1a6aff58d8e92
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 15:41:36 2014 -0800

        Remove remaining references to DG.Record.

    commit c8cfe550dbc5e1071555490cc656de167100b151
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 15:25:37 2014 -0800

        Resolve internal references when creating model objects.

    commit a35be96dcac6109daf27e12657520b81cb1e44d2
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 14:38:25 2014 -0800

        Rename unregister to deregister.

    commit 95c9ebb17995517bcbb853fd41bdbb7c00847abe
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 14:32:33 2014 -0800

        Move registration and deregistration to init and destroy in model object superclass.

        All model objects register upon creation and deregister upon destruction so it make sense to centralize.
        Add, also, in the superclass a verification step for the model objects.

    commit 0112832e5eded68224bc563f44289797442e62d2
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 13:19:05 2014 -0800

        Improve test messages.

    commit 4ab8534e93c45316f78a7bcb97a303f5f990096a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 11:33:15 2014 -0800

        Move invocation of destroyAllRecordsOfType to DG.store from DG.record.

        DG.Record goes away.

    commit d1171170858382dd85ae4db83d96e9ae9a9a1e70
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 11:29:43 2014 -0800

        Implement destroyAllRecordsOfType and flush(null implementation) in model_store. The later is for backwards compatibility. The former is needed to manage the global store.

    commit 76504297487f3b2d217030e8d223d0f07ffd322a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 11:25:30 2014 -0800

        Move recordType method from DG.Record to DG.BaseModel.

        DG.BaseModel is new superclass for model objects.

    commit a416e87bd59f8aeb935d248845aee6e45f480e35
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Nov 7 11:22:23 2014 -0800

        Move unregistration to object level destroy method from class leve destroyAttribute.

        All class level destroy methods should just invoke the object level
        method, so persistent objects can be destroyed without specific type calls.

    commit eb08c019e34b073a483a2d3470f6a0174a51dec6
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 12:38:08 2014 -0800

        In dot_chart_model get case from new global store.

    commit 12dfaa3fb608e3f0d9aae606a7c479faa51817e5
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 11:40:37 2014 -0800

        Various adjustments to enable the data context to properly access collections.

    commit a26f16d7a3f8231dba014cbe0936ce2983131387
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 11:25:47 2014 -0800

        Add attributes and cases when creating a collection, if provided in create properties.

        Add toJSON for serialization.

    commit 732c739c5955b1a5ea40bafd6c733dafd3677f35
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 11:00:14 2014 -0800

        Add toJSON for serialization.

        Correct the arguments to the DG.store.find method to correspond with historic usage.

    commit 7dd0d868b0c1a7ffccdea06b50423f16a25c826e
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:58:33 2014 -0800

        Add toJSON for serialization.

        Rename local variable in getGlobalValueByName to improve clarity.

    commit 67e9407e3d9f5cb68a52fc4c6e6638ccef45b11d
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:56:35 2014 -0800

        Add records to the cases and attrs arrays by pushObject, not  the native array method 'push'.

        This allows propagation of notices to the ArrayControllers in collection_client.

    commit 15831994948ddaef13725f8fa1c3ec3bbb60f851
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:52:08 2014 -0800

        Remove dg_record. No longer used.

    commit 9b9654f9fa6f5235f01037ecced10d42e2ce7330
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:47:26 2014 -0800

        Fix argument list for find method of model_store.

        Add additional documentation.

    commit a81c66c22148065fd343868e40da5c9f0d99d6bd
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:33:17 2014 -0800

        Add toJSON for serialization.

        Handle init with collection ID instead of collection object.

    commit d89ec4b77587bba5294578dc8524891596e9ffa5
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:31:50 2014 -0800

        Attribute was not unregistering itself.

        Add toJSON for serialization.
        Handle init with collection ID instead of collection object.

    commit a6197af28504bb695e7a21010e20c02c7baf3035
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 10:05:44 2014 -0800

        Tests sproutcore ArrayController to understand its behavior.

    commit 8faf3440d311b20bd3c0012d448229c4c9fa87e1
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 07:16:00 2014 -0800

        Implement toJSON to persist CODAP documents.

    commit f542e8787a0c8591e500b8553dff44c49aec92d9
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 07:13:27 2014 -0800

        Fix global value creation. Discovered in unit tests.

    commit 4f85cb813eed93a315b4bddffd1b06500c1362e1
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Nov 6 07:10:26 2014 -0800

        Improve unit tests.

    commit 754adcdd8f107d611022f1de98398eb33bc851de
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:51:39 2014 -0700

        Make collections accessible from data context.

    commit 8204f5cb8068ce62d4249d319640fb3d73068013
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:34:49 2014 -0700

        Adjust data context for data collections collective api.

    commit 43ac7fbec1fdd1240fe0d2480681fc656c81ad49
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:31:16 2014 -0700

        Construct document components with reference to document object, not id.

    commit 950e9f0db408d2fb229ff28fbbb71a988520c6fc
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:29:34 2014 -0700

        Add base model superclass to models and adjust Collection_record for change in data-context record aggregate api. This is to allow for event calls.

    commit acc2f74111fb9b71481ba4c51786077ba4a883e7
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:27:19 2014 -0700

        Remove no longer used id mapping code from document archiver.

    commit 4ecd3a0e4aa7a8dd7b1a9799229b593234037237
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:26:18 2014 -0700

        Add base model superclass to models. This is to allow for event calls. Also, adjust DataContextRecord.createContext to create from document id and document object, equivalently.

    commit fd16cbea7d8c8a4e17a66291eef1a658c26216e6
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 10:22:21 2014 -0700

        Add base model superclass to models. This is to allow for event calls.

    commit f22d8bd6037eb4e15135326f8acd8f1b07d940aa
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 08:01:43 2014 -0700

        Additional tests for presence of collections.

    commit bb1762d833fc3c599ab61b6664d5c7a56545ca2a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 30 07:25:19 2014 -0700

        Add base model superclass to models. This is to allow for event calls.

    commit a356145f343bd89ae49897a4b0233a5e00015fb9
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 10:31:57 2014 -0700

        Remove dependence on DG.activeDocument in model objects.

    commit 36e5fdc4c277101af6e438d4f325fad81c59b858
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:51:44 2014 -0700

        Convert contexts and components relations to objects from arrays.

    commit aa00da31c853472507ae5fae05b53e4fb8fc1bf5
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:50:58 2014 -0700

        Move construction of sub-objects to the parent objects in the hierarchy.

        Change from mapping file ids to internal ids to a practice of respecting file identifiers.
        This greatly simplifies the document_archiver, at least in the direction of
        importing document files.

    commit dfa45cbae5c0123c09f740cda2710764db2d1981
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:44:14 2014 -0700

        Fix object deletion.

    commit dd914288fe18ae87c0e272ae80a1608c0d8136b4
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:41:27 2014 -0700

        Correct object deletion and, in object creation, reference original properties not the object under construction.

    commit 1c0150d7f25d58821a6bf4da584e5b67af6c96b6
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:30:23 2014 -0700

        JSHint kvetch.

    commit 4ad76e427af9b460c841029270a4424771a98fed
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:29:13 2014 -0700

        Add context to properties passed to collection to make for a more realistic test.

    commit 72d508f33358e0553db4a22f5f8f60ca32340cf3
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Wed Oct 29 09:27:38 2014 -0700

        JSHint kvetches.

    commit 499087b7f165eb890fa0629f21d71d87b780763a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 14:24:33 2014 -0700

        Change document component and context to associative array.

    commit cc7578d8b58c6414b178a89d59e123cb0e68f109
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 14:23:31 2014 -0700

        Convert component and context aggregates to associative arrays and construct components, contexts and global values if found in the document.

    commit 9685187a6033b69d07fda9c2260b7572fd60b6ba
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 14:20:56 2014 -0700

        Construct collections in context if known at create time.

    commit 2973b863862817cc5383d8f572097e4cbe1d8083
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 14:19:59 2014 -0700

        Construct attributes and cases if known at create time.

    commit 6c504aa2e810bcb96d79847182047acf6fd2320b
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 13:37:10 2014 -0700

        Improve ID generation.

        Do not generate, if created document has an ID.
        Make sure id is unused.

    commit 22f757a698449027d648702693a72d008a340964
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 28 13:33:19 2014 -0700

        Initial checkin of DocumentArchiver test.

        Tests OpenDocument.

    commit 7e73f1d77eba5ba44a7cf5d8ca2bf204dbcb28a2
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Mon Oct 27 10:00:15 2014 -0700

        Remove memory.js. No longer in use.

    commit 3b010cd67232c9e4e04b1c32e62bef1c5369b503
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 21:01:18 2014 -0700

        Clean up comments, a bit.

    commit 090e496796a0ed4791f1017f0b495c49d2d28eb4
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 21:00:53 2014 -0700

        No longer needed. We are removing attachment to Sproutcore persistence model.

    commit eb2d24b9c2c8385e9460aa6be9a09e15965fb632
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 18:31:47 2014 -0700

        Clean up SC Store-related code in GlobalsController.

        Affected unit test. Also clean up relationship between DG.store member and
        DG.activeDocument. ActiveDocument and DG.store should
        vanish when document is destroyed.
        Clean up jshint kvetches.

    commit 0f1f71a99e7de09c659cf05d31d51e42e15d5c38
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 16:10:52 2014 -0700

        Unregister case objects on destruction.

    commit 8233a110ad1b275d7da82eb0ec83a149dfa396bb
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 16:10:05 2014 -0700

        Regularize model object tests.

    commit 020ad4737f573bffe07df84893465eab9e7a9ee7
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 15:15:28 2014 -0700

        Regularize model object tests.

    commit 3db386a9c338dff67b6798b2e31d79d617dab289
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 13:52:50 2014 -0700

        Correct handling of case delete.

    commit c3e227f40ac8a8a5d56d3a26dfbb6bc8dae23d7a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 13:52:25 2014 -0700

        Regularize model object tests.

    commit cbd29d01c89e21e957cf546bb65e93809ab7bb53
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 12:16:10 2014 -0700

        Regularize model object tests.

    commit 1a85c13591ca5f3efda154c01ac29fd24e126bfe
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 11:57:54 2014 -0700

        Regularize model object tests.

    commit 1dc74b03c87e930b28f51f17733934b50f2b3aad
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 11:51:35 2014 -0700

        Regularize model object tests.

    commit a70dc9536ec72200b294fffe538f255e66ff898a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 11:45:51 2014 -0700

        Regularize model object tests.

        Remove qualification about component content.

    commit c7a233da6ed681d34d5035db955556541381e8c8
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 11:37:23 2014 -0700

        Regularize model object tests.

    commit 1942b39273d927aafad6295a42de828222b55c21
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sun Oct 26 11:26:58 2014 -0700

        Regularize model object tests.

    commit 31ca63aabc0ae7c1f49cc4f5cef0213ca0fe8913
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 17:25:52 2014 -0700

        Add tests of attribute and case access.

    commit 84aff3dc626352eae46f05f4deb027af8c094fe0
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 17:19:50 2014 -0700

        The properties attrs and cases in collection record were array objects
        and being created in the prototype.

    commit 0d466524b2c059ad406109aef9db7f8a11f55db1
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 17:19:04 2014 -0700

        When we create an attribute in the collection_model, we must, for some reason, record it in the collection_record, too.

    commit 18523315fb119c852bcfd9fc1ba6ae551dcd317d
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 17:16:57 2014 -0700

        When we create an attribute we register it.

    commit c37288912686687e4a6c6c733141f3ee0ef04a3a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 17:15:42 2014 -0700

        When we create a case we register it and construct a values map.

    commit 685fb4817d50b7c87cd7a5e4629829c6f0711df3
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 11:47:21 2014 -0700

        Add tests for case model.

    commit b76cff6a59ad04423555fa518264d3ccce1c2201
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 11:46:18 2014 -0700

        Verify attribute access in collection.

    commit 34d81e5dfb3dc262bfca032f450e0a8b62cd50df
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 11:45:32 2014 -0700

        Remove sc.store elements of collection_model.

    commit ea19429ba4006e5f85498ef820a8c1cdf15ac58c
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 10:19:49 2014 -0700

        Reform attribute unit test to construct from a collection.

    commit 7b3c7c50cb3e044a6072c9fa17a5cc6d21adcf0a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 10:17:37 2014 -0700

        New tests.

    commit 2de8cc5c32b8540fff47a4db1f665202e3e79f2d
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 10:16:19 2014 -0700

        Tests for collection model.

    commit 9b31616f3c6760aea6049ab90982da7bf560bee8
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Sat Oct 25 10:12:31 2014 -0700

        Correct the call for case object construction.

    commit ed39ab041ac1cdc4107fb8f844208c16a015c4b3
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 14:58:59 2014 -0700

        Add tests for ancestry relationships.

        Clean up variable naming.

    commit 3916174fd1478212e00ea568686974d6e3f3b27e
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 13:58:00 2014 -0700

        Replace old model classes with new.

    commit 5b59398411709660079d4b89e671703810720d32
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 11:03:28 2014 -0700

        Rename attribute and global model test files and adjustments to attribute model to pass initial tests.

    commit 94c20c86db2326896a1f703b78285f1cd6599bad
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:49:13 2014 -0700

        Call the correct class-level destroy method to clean up collections.

    commit 9eb5cda9d00040026d8a24e6b2ec640096e1dbc6
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:12:20 2014 -0700

        Rename tests to avoid name collision.

    commit 2d231b9bbb16ea2bec1dd610c6acb8272efdbe5c
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:10:40 2014 -0700

        Test collection record.

    commit 146c3d66ca23e81aea34735b063d2e7973782c0e
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:09:09 2014 -0700

        Fix errors in constructor and destroy methods exposed by unit tests.

    commit baa582f054efdd63d9c7daf8813f3e60e08e3c18
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:07:10 2014 -0700

        DataContextRecord was registering the wrong class.

    commit 23c98c8c34bacef00b7d3ba9386f6e1a67a17fa0
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:05:26 2014 -0700

        CreateContext method was constructing wrong class.

    commit 2d596651fdec763df4ef891265550c323bd3e992
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:04:18 2014 -0700

        Rename class to avoid conflicts with replacement class.

    commit ba2d1c5a360219e510843fecae7af8ff906afc73
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:03:20 2014 -0700

        Make sure objects have ids before adding to global hashmap.

    commit 97aa17ff958867a8e9f6a1514a7c7d765ad17588
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 10:00:43 2014 -0700

        Create data context from document.

    commit c626d38a89e0d14021d563ac3d631559ec55a45f
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 24 09:59:20 2014 -0700

        Clean up logging.

    commit 8143b62355fdda9690bcbc1020e28efb053e56f2
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 23 10:45:43 2014 -0700

        Provisional checkin. Document, Component, GlobalValue, and DataContext models basicly working.

    commit c36096eafe16b8ef67c368922a0d5da2b9a889d8
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:35:09 2014 -0700

        Add reformed component model and tests for same.

    commit 51f8ad2fa1f13fe7c775508888259c47596d95f8
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:33:16 2014 -0700

        Add reformed Component_model and tests for same.

    commit a45790813b44e1fac503648e018cdb3761f88734
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:31:16 2014 -0700

        Improve testing of document model.

    commit e2c1d7fff63caed1d10562373eb107bfc527543a
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:27:55 2014 -0700

        Support object delete. Improve tests for global_value_model.

    commit 8d840741998ccd41c332c2e13335cde9abf16a65
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:24:41 2014 -0700

        Replaced by model_store.

    commit 27fc039b49a11b8008d84e17a5604dc96e69eede
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Tue Oct 21 07:23:37 2014 -0700

        Model Store is a bare bones storage service.

    commit 7a33d4f3f82e459c256413704cd48088ed2d7fb0
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 17 17:37:33 2014 -0700

        Begin model reform.

        For now we are creating new model objects in new files, so rename old classes.
        Revise tests and write new ones for reformed models.

    commit f853ad003267e592311e3eed1c0eca105922c5dc
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Fri Oct 17 17:36:06 2014 -0700

        Begin model reform.

        For now we are creating new model objects in new files, so rename old classes.
        Revise tests and write new ones for reformed models.

    commit f74e62497dbbf7e9e642f2b5bea0d2d4400cf7fb
    Author: Jonathan Sandoe <jsandoe@concord.org>
    Date:   Thu Oct 16 14:04:47 2014 -0700

        Move SC.store.fetch(DG.Case) calls to data_context from component world to centralize Case retrieval in preparation
        for reform of model. Reorder methods in game_controller to make jshint happy.

commit 74c425befb1c236ca5fbee4592ed0f128ad8c206
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Mon Nov 10 11:57:44 2014 -0800

    Delete records should use standard data context method for accessing cases by ID.

commit 43f71d6d699dec99855e74d053935e61944bb105
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Mon Nov 10 09:05:13 2014 -0800

    Clean up code.

commit 6624ffdccb0948cba444771f80f10882aac2c7ab
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Nov 9 20:07:44 2014 -0800

    Rename toJSON to toArchive for historical reasons.

commit 84afd3f368646af5588afb8b618e02cfb83466fc
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Nov 8 19:17:51 2014 -0800

    Move toLink method from DG.record.

commit 1e3fe9d6b5e54b59e5193935bbc14a03a552e0e4
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Nov 8 18:13:10 2014 -0800

    Handle prevAdapters sometimes null in case_table_controller reset.

commit caec93f207339206d45f58cc41a9d443204c488e
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 21:57:06 2014 -0800

    Fix incorrect argument list in invocation of getCaseByID in PlotDataConfiguration.

commit f1f2b2d8876d442ad61851328342b2118097d37e
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 17:47:45 2014 -0800

    Fix GameContext's ability to find and assemble collections.

commit 47272300b0055044dfe6e847bfc6ed5bdc816a82
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 17:43:15 2014 -0800

    Correct test descriptions.

commit 281a299bf83c53930114850611875571de1c9334
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 16:40:36 2014 -0800

    Creating a child record creates a reference in parent.

    This fixes an issue where selecting a parent case was not selecting its children.

commit 4475464b155bf28aa996362030c1a6aff58d8e92
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 15:41:36 2014 -0800

    Remove remaining references to DG.Record.

commit c8cfe550dbc5e1071555490cc656de167100b151
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 15:25:37 2014 -0800

    Resolve internal references when creating model objects.

commit a35be96dcac6109daf27e12657520b81cb1e44d2
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 14:38:25 2014 -0800

    Rename unregister to deregister.

commit 95c9ebb17995517bcbb853fd41bdbb7c00847abe
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 14:32:33 2014 -0800

    Move registration and deregistration to init and destroy in model object superclass.

    All model objects register upon creation and deregister upon destruction so it make sense to centralize.
    Add, also, in the superclass a verification step for the model objects.

commit 0112832e5eded68224bc563f44289797442e62d2
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 13:19:05 2014 -0800

    Improve test messages.

commit 4ab8534e93c45316f78a7bcb97a303f5f990096a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 11:33:15 2014 -0800

    Move invocation of destroyAllRecordsOfType to DG.store from DG.record.

    DG.Record goes away.

commit d1171170858382dd85ae4db83d96e9ae9a9a1e70
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 11:29:43 2014 -0800

    Implement destroyAllRecordsOfType and flush(null implementation) in model_store. The later is for backwards compatibility. The former is needed to manage the global store.

commit 76504297487f3b2d217030e8d223d0f07ffd322a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 11:25:30 2014 -0800

    Move recordType method from DG.Record to DG.BaseModel.

    DG.BaseModel is new superclass for model objects.

commit a416e87bd59f8aeb935d248845aee6e45f480e35
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Nov 7 11:22:23 2014 -0800

    Move unregistration to object level destroy method from class leve destroyAttribute.

    All class level destroy methods should just invoke the object level
    method, so persistent objects can be destroyed without specific type calls.

commit eb08c019e34b073a483a2d3470f6a0174a51dec6
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 12:38:08 2014 -0800

    In dot_chart_model get case from new global store.

commit 12dfaa3fb608e3f0d9aae606a7c479faa51817e5
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 11:40:37 2014 -0800

    Various adjustments to enable the data context to properly access collections.

commit a26f16d7a3f8231dba014cbe0936ce2983131387
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 11:25:47 2014 -0800

    Add attributes and cases when creating a collection, if provided in create properties.

    Add toJSON for serialization.

commit 732c739c5955b1a5ea40bafd6c733dafd3677f35
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 11:00:14 2014 -0800

    Add toJSON for serialization.

    Correct the arguments to the DG.store.find method to correspond with historic usage.

commit 7dd0d868b0c1a7ffccdea06b50423f16a25c826e
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:58:33 2014 -0800

    Add toJSON for serialization.

    Rename local variable in getGlobalValueByName to improve clarity.

commit 67e9407e3d9f5cb68a52fc4c6e6638ccef45b11d
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:56:35 2014 -0800

    Add records to the cases and attrs arrays by pushObject, not  the native array method 'push'.

    This allows propagation of notices to the ArrayControllers in collection_client.

commit 15831994948ddaef13725f8fa1c3ec3bbb60f851
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:52:08 2014 -0800

    Remove dg_record. No longer used.

commit 9b9654f9fa6f5235f01037ecced10d42e2ce7330
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:47:26 2014 -0800

    Fix argument list for find method of model_store.

    Add additional documentation.

commit a81c66c22148065fd343868e40da5c9f0d99d6bd
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:33:17 2014 -0800

    Add toJSON for serialization.

    Handle init with collection ID instead of collection object.

commit d89ec4b77587bba5294578dc8524891596e9ffa5
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:31:50 2014 -0800

    Attribute was not unregistering itself.

    Add toJSON for serialization.
    Handle init with collection ID instead of collection object.

commit a6197af28504bb695e7a21010e20c02c7baf3035
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 10:05:44 2014 -0800

    Tests sproutcore ArrayController to understand its behavior.

commit 8faf3440d311b20bd3c0012d448229c4c9fa87e1
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 07:16:00 2014 -0800

    Implement toJSON to persist CODAP documents.

commit f542e8787a0c8591e500b8553dff44c49aec92d9
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 07:13:27 2014 -0800

    Fix global value creation. Discovered in unit tests.

commit 4f85cb813eed93a315b4bddffd1b06500c1362e1
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Nov 6 07:10:26 2014 -0800

    Improve unit tests.

commit 754adcdd8f107d611022f1de98398eb33bc851de
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:51:39 2014 -0700

    Make collections accessible from data context.

commit 8204f5cb8068ce62d4249d319640fb3d73068013
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:34:49 2014 -0700

    Adjust data context for data collections collective api.

commit 43ac7fbec1fdd1240fe0d2480681fc656c81ad49
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:31:16 2014 -0700

    Construct document components with reference to document object, not id.

commit 950e9f0db408d2fb229ff28fbbb71a988520c6fc
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:29:34 2014 -0700

    Add base model superclass to models and adjust Collection_record for change in data-context record aggregate api. This is to allow for event calls.

commit acc2f74111fb9b71481ba4c51786077ba4a883e7
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:27:19 2014 -0700

    Remove no longer used id mapping code from document archiver.

commit 4ecd3a0e4aa7a8dd7b1a9799229b593234037237
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:26:18 2014 -0700

    Add base model superclass to models. This is to allow for event calls. Also, adjust DataContextRecord.createContext to create from document id and document object, equivalently.

commit fd16cbea7d8c8a4e17a66291eef1a658c26216e6
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 10:22:21 2014 -0700

    Add base model superclass to models. This is to allow for event calls.

commit f22d8bd6037eb4e15135326f8acd8f1b07d940aa
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 08:01:43 2014 -0700

    Additional tests for presence of collections.

commit bb1762d833fc3c599ab61b6664d5c7a56545ca2a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 30 07:25:19 2014 -0700

    Add base model superclass to models. This is to allow for event calls.

commit a356145f343bd89ae49897a4b0233a5e00015fb9
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 10:31:57 2014 -0700

    Remove dependence on DG.activeDocument in model objects.

commit 36e5fdc4c277101af6e438d4f325fad81c59b858
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:51:44 2014 -0700

    Convert contexts and components relations to objects from arrays.

commit aa00da31c853472507ae5fae05b53e4fb8fc1bf5
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:50:58 2014 -0700

    Move construction of sub-objects to the parent objects in the hierarchy.

    Change from mapping file ids to internal ids to a practice of respecting file identifiers.
    This greatly simplifies the document_archiver, at least in the direction of
    importing document files.

commit dfa45cbae5c0123c09f740cda2710764db2d1981
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:44:14 2014 -0700

    Fix object deletion.

commit dd914288fe18ae87c0e272ae80a1608c0d8136b4
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:41:27 2014 -0700

    Correct object deletion and, in object creation, reference original properties not the object under construction.

commit 1c0150d7f25d58821a6bf4da584e5b67af6c96b6
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:30:23 2014 -0700

    JSHint kvetch.

commit 4ad76e427af9b460c841029270a4424771a98fed
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:29:13 2014 -0700

    Add context to properties passed to collection to make for a more realistic test.

commit 72d508f33358e0553db4a22f5f8f60ca32340cf3
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Wed Oct 29 09:27:38 2014 -0700

    JSHint kvetches.

commit 499087b7f165eb890fa0629f21d71d87b780763a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 14:24:33 2014 -0700

    Change document component and context to associative array.

commit cc7578d8b58c6414b178a89d59e123cb0e68f109
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 14:23:31 2014 -0700

    Convert component and context aggregates to associative arrays and construct components, contexts and global values if found in the document.

commit 9685187a6033b69d07fda9c2260b7572fd60b6ba
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 14:20:56 2014 -0700

    Construct collections in context if known at create time.

commit 2973b863862817cc5383d8f572097e4cbe1d8083
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 14:19:59 2014 -0700

    Construct attributes and cases if known at create time.

commit 6c504aa2e810bcb96d79847182047acf6fd2320b
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 13:37:10 2014 -0700

    Improve ID generation.

    Do not generate, if created document has an ID.
    Make sure id is unused.

commit 22f757a698449027d648702693a72d008a340964
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 28 13:33:19 2014 -0700

    Initial checkin of DocumentArchiver test.

    Tests OpenDocument.

commit 7e73f1d77eba5ba44a7cf5d8ca2bf204dbcb28a2
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Mon Oct 27 10:00:15 2014 -0700

    Remove memory.js. No longer in use.

commit 3b010cd67232c9e4e04b1c32e62bef1c5369b503
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 21:01:18 2014 -0700

    Clean up comments, a bit.

commit 090e496796a0ed4791f1017f0b495c49d2d28eb4
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 21:00:53 2014 -0700

    No longer needed. We are removing attachment to Sproutcore persistence model.

commit eb2d24b9c2c8385e9460aa6be9a09e15965fb632
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 18:31:47 2014 -0700

    Clean up SC Store-related code in GlobalsController.

    Affected unit test. Also clean up relationship between DG.store member and
    DG.activeDocument. ActiveDocument and DG.store should
    vanish when document is destroyed.
    Clean up jshint kvetches.

commit 0f1f71a99e7de09c659cf05d31d51e42e15d5c38
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 16:10:52 2014 -0700

    Unregister case objects on destruction.

commit 8233a110ad1b275d7da82eb0ec83a149dfa396bb
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 16:10:05 2014 -0700

    Regularize model object tests.

commit 020ad4737f573bffe07df84893465eab9e7a9ee7
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 15:15:28 2014 -0700

    Regularize model object tests.

commit 3db386a9c338dff67b6798b2e31d79d617dab289
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 13:52:50 2014 -0700

    Correct handling of case delete.

commit c3e227f40ac8a8a5d56d3a26dfbb6bc8dae23d7a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 13:52:25 2014 -0700

    Regularize model object tests.

commit cbd29d01c89e21e957cf546bb65e93809ab7bb53
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 12:16:10 2014 -0700

    Regularize model object tests.

commit 1a85c13591ca5f3efda154c01ac29fd24e126bfe
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 11:57:54 2014 -0700

    Regularize model object tests.

commit 1dc74b03c87e930b28f51f17733934b50f2b3aad
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 11:51:35 2014 -0700

    Regularize model object tests.

commit a70dc9536ec72200b294fffe538f255e66ff898a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 11:45:51 2014 -0700

    Regularize model object tests.

    Remove qualification about component content.

commit c7a233da6ed681d34d5035db955556541381e8c8
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 11:37:23 2014 -0700

    Regularize model object tests.

commit 1942b39273d927aafad6295a42de828222b55c21
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sun Oct 26 11:26:58 2014 -0700

    Regularize model object tests.

commit 31ca63aabc0ae7c1f49cc4f5cef0213ca0fe8913
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 17:25:52 2014 -0700

    Add tests of attribute and case access.

commit 84aff3dc626352eae46f05f4deb027af8c094fe0
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 17:19:50 2014 -0700

    The properties attrs and cases in collection record were array objects
    and being created in the prototype.

commit 0d466524b2c059ad406109aef9db7f8a11f55db1
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 17:19:04 2014 -0700

    When we create an attribute in the collection_model, we must, for some reason, record it in the collection_record, too.

commit 18523315fb119c852bcfd9fc1ba6ae551dcd317d
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 17:16:57 2014 -0700

    When we create an attribute we register it.

commit c37288912686687e4a6c6c733141f3ee0ef04a3a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 17:15:42 2014 -0700

    When we create a case we register it and construct a values map.

commit 685fb4817d50b7c87cd7a5e4629829c6f0711df3
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 11:47:21 2014 -0700

    Add tests for case model.

commit b76cff6a59ad04423555fa518264d3ccce1c2201
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 11:46:18 2014 -0700

    Verify attribute access in collection.

commit 34d81e5dfb3dc262bfca032f450e0a8b62cd50df
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 11:45:32 2014 -0700

    Remove sc.store elements of collection_model.

commit ea19429ba4006e5f85498ef820a8c1cdf15ac58c
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 10:19:49 2014 -0700

    Reform attribute unit test to construct from a collection.

commit 7b3c7c50cb3e044a6072c9fa17a5cc6d21adcf0a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 10:17:37 2014 -0700

    New tests.

commit 2de8cc5c32b8540fff47a4db1f665202e3e79f2d
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 10:16:19 2014 -0700

    Tests for collection model.

commit 9b31616f3c6760aea6049ab90982da7bf560bee8
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Sat Oct 25 10:12:31 2014 -0700

    Correct the call for case object construction.

commit ed39ab041ac1cdc4107fb8f844208c16a015c4b3
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 14:58:59 2014 -0700

    Add tests for ancestry relationships.

    Clean up variable naming.

commit 3916174fd1478212e00ea568686974d6e3f3b27e
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 13:58:00 2014 -0700

    Replace old model classes with new.

commit 5b59398411709660079d4b89e671703810720d32
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 11:03:28 2014 -0700

    Rename attribute and global model test files and adjustments to attribute model to pass initial tests.

commit 94c20c86db2326896a1f703b78285f1cd6599bad
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:49:13 2014 -0700

    Call the correct class-level destroy method to clean up collections.

commit 9eb5cda9d00040026d8a24e6b2ec640096e1dbc6
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:12:20 2014 -0700

    Rename tests to avoid name collision.

commit 2d231b9bbb16ea2bec1dd610c6acb8272efdbe5c
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:10:40 2014 -0700

    Test collection record.

commit 146c3d66ca23e81aea34735b063d2e7973782c0e
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:09:09 2014 -0700

    Fix errors in constructor and destroy methods exposed by unit tests.

commit baa582f054efdd63d9c7daf8813f3e60e08e3c18
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:07:10 2014 -0700

    DataContextRecord was registering the wrong class.

commit 23c98c8c34bacef00b7d3ba9386f6e1a67a17fa0
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:05:26 2014 -0700

    CreateContext method was constructing wrong class.

commit 2d596651fdec763df4ef891265550c323bd3e992
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:04:18 2014 -0700

    Rename class to avoid conflicts with replacement class.

commit ba2d1c5a360219e510843fecae7af8ff906afc73
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:03:20 2014 -0700

    Make sure objects have ids before adding to global hashmap.

commit 97aa17ff958867a8e9f6a1514a7c7d765ad17588
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 10:00:43 2014 -0700

    Create data context from document.

commit c626d38a89e0d14021d563ac3d631559ec55a45f
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 24 09:59:20 2014 -0700

    Clean up logging.

commit 8143b62355fdda9690bcbc1020e28efb053e56f2
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 23 10:45:43 2014 -0700

    Provisional checkin. Document, Component, GlobalValue, and DataContext models basicly working.

commit c36096eafe16b8ef67c368922a0d5da2b9a889d8
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:35:09 2014 -0700

    Add reformed component model and tests for same.

commit 51f8ad2fa1f13fe7c775508888259c47596d95f8
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:33:16 2014 -0700

    Add reformed Component_model and tests for same.

commit a45790813b44e1fac503648e018cdb3761f88734
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:31:16 2014 -0700

    Improve testing of document model.

commit e2c1d7fff63caed1d10562373eb107bfc527543a
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:27:55 2014 -0700

    Support object delete. Improve tests for global_value_model.

commit 8d840741998ccd41c332c2e13335cde9abf16a65
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:24:41 2014 -0700

    Replaced by model_store.

commit 27fc039b49a11b8008d84e17a5604dc96e69eede
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Tue Oct 21 07:23:37 2014 -0700

    Model Store is a bare bones storage service.

commit 7a33d4f3f82e459c256413704cd48088ed2d7fb0
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 17 17:37:33 2014 -0700

    Begin model reform.

    For now we are creating new model objects in new files, so rename old classes.
    Revise tests and write new ones for reformed models.

commit f853ad003267e592311e3eed1c0eca105922c5dc
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Fri Oct 17 17:36:06 2014 -0700

    Begin model reform.

    For now we are creating new model objects in new files, so rename old classes.
    Revise tests and write new ones for reformed models.

commit f74e62497dbbf7e9e642f2b5bea0d2d4400cf7fb
Author: Jonathan Sandoe <jsandoe@concord.org>
Date:   Thu Oct 16 14:04:47 2014 -0700

    Move SC.store.fetch(DG.Case) calls to data_context from component world to centralize Case retrieval in preparation
    for reform of model. Reorder methods in game_controller to make jshint happy.
Clean up code.
Changes from code review.

Fix header commentary.
Changes from code review.

Fix header commentary.
Initialize arrays and hashes in init method.
Add needed comments.
Remove commented out code.
Remove id ranges from object registration in the model store.
Code cleanup
Clear All doesn't work after model reform.

It turns out that the clear all data path did not delete cases via the established collection.
Modified the case and attribute models to delete themselves from their collections is a part
of their destroy process. Added unit tests.
For computing case counts, handle condition where parent and child collection are not present.
In ModelStore.destroyAllRecordsOfType, handle missing exceptionKeys argument.
Move deployCODAP script, meant for server use, out of developer bin directory to a directory which makes clear the use.
Add example codap-config.js file.
Clean up change event handling in CaseTableController to remove switch statement fallthrough.
Comment out failing test, temporarily. With reform of id generation,
it is possible for game contexts to have a different id from the original document.
Merge branch 'wip-data-model-reform'

Conflicts:
	apps/dg/controllers/app_controller.js
Fix import and export.

Export was not saving the Graph Components data nor the data context.
There were four fixes:
* BaseModel.recordType was returning an object, where, sometimes a string was expected. Added a recordTypeString method.
* DocumentModel was creating the DG.store and the document in the wrong order.
* Core.js included renegade references to SC.Store
* The AppController merge was bad and a reference to a deleted variable docStore was left in.
[Fixes #80746938] CODAP Model Layer Reform

Code cleanup. Add clarifying comment.