Fixing deprecated methods

Some methods were deprecated by Guzzle, dropped them and added tests to ensure
default headers are always there.
Handling null values