Esquery Issues

There were a few issues happening in esquery this pr resolves them.

1) Append was not setting the new vnd.eventstore.events+json media type so appends were failing
2) esquery would crash with an exception if it could not talk to the server
3) Authentication was not working properly in linx