Adding support to add objects directly that then are serialized and added to the index
Added getLastRequest and getLastResponse methods to Client class
Added Request::toString() method. Return request string representaion in curl style.
Expect a string or array used as callable
Added Request::toArray() method, toString() now return json encoded result of toArray()
Adding tests for addObject method
Merge remote-tracking branch 'realorigin/master' into serializer_support

Conflicts:
	lib/Elastica/Document.php
	lib/Elastica/Type.php
	test/lib/Elastica/Test/TypeTest.php
fixing test
Deleted unnecessary runtime exception
adding changes to changes.txt
Fixing namespaces in comments
Merge pull request #295 from liip-forks/serializer_support

Adding support to add objects directly that then are serialized and adde...
Added Util::convertRequestToCurlCommand() method
Merge branch 'master' into client-last-request-response

Conflicts:
	test/lib/Elastica/Test/ClientTest.php
Set Request into ResponseException
Merge pull request #310 from munkie/client-last-request-response

Get last request and response from client