Using a more flexible signature now, in opts rather than args
Closes #6 can now specify basic auth