Regrouped reference.ts by directory
Merge pull request #965 from palantir/organize-references

Regrouped reference.ts by directory