Adds auth.
Merge pull request #34 from piep/auth

Adds auth.