Change directory structure to be more sensible
Update reference.ts, etc
Merge pull request #939 from palantir/directory-structure

Change directory structure to be more sensible