made basic auth optional, moved authentication logic to api_utils and updated README
Merge branch 'pr/2'