Api authorisation

Closes #63 
Aah ok cool, I didn't know about that. Thanks