Moved all update request logic to client
setType and setIndex method can accept Index and Type objects
Added setType, setIndex methods tests. Fixed document id check in updateDocument
Added some missing Type tests
Added expectedException annotation instead of try catch block in DeletType test
Fixed Document setType and setIndex methods that were broken because of moving to namespaces
Added Client::updateDocument tests
Added hasId method to document to check if id is set or not
Code cleanup. Updated outdated docblocks
Merge pull request #308 from munkie/update-document-fixes

Moved all update document request logic to Client class