Update the library with new HTTP API

Posted by mangalaman93:

See this for more details Remove custom HTTP Headers, cleanup API by mangalaman93 · Pull Request #3365 · dgraph-io/dgraph · GitHub & Make HTTP endpoint compatible with GraphQL best practices · Issue #3142 · dgraph-io/dgraph · GitHub