[WIP] Add authentication

Implementation of #10.