Added auth mechanism for Nailgan API client.