Api authentication

Fixes #57 
Ok cool, sounds good.