Api authorisation

Closes #63 
Lol, yeah no system is complete without 418! :smile: