This Fixes #766,#1062

@sneha-bharti can you please test this out thoroughly on your solr instance. My solr is unfriendly sometimes.

@gordonwoodhull The delete issue which I was telling earlier is kind of solved with our current version of solr as now am using the xml syntax for delete query. Earlier I was using the json format of query. Both are allowed. I found using xml mode(opt 2)is consistent and always deletes.

I have spent 90 % time in testing this one and 10% in code.:)

1>The json format of curl req : 
http://myURL/update?commit=true" -H 'Content-type:application/json' -d '{"delete": {"id":"1730887464"}}
2>The xml format of request(using in this commit) to solr : 
http://localhost:8983/solr/update?stream.body=<delete><query>id:1332922</query></delete>&commit=true