Refactored REST API.

Lined up JSON output of repository node endpoints.

Added endpoint for looking up child associations.