Endpoints can be of 'documents' or 'objects' type.

Begin work on #121. More to come.