Authentication

Closes #3.