Add authentication suppport, closes #12