Move endpoints into the repository.

Resolves #7