Add TAGS to .gitignore
Add mutex to client

To be used around all API calls except "cancel"
Handle errors from the server in more cases