Moving resize to DrPublishApiClientImage

This makes it a lot easier to resize images used
outside of the built in image element
Urlencode publication name
Merge branch 'master' of github.com:aptoma/no.aptoma.drpublish.api.client.php
Add connect timeout
Connect timeout for images
Merge pull request #5 from christeredvartsen/master

Fix code that generates E_NOTICE's
Merge pull request #1 from rudolfrck/master

Improved resize functionality
Clone the XML element in order to support thumbnail generation

This is a bit tricky to explain, but when using the getThumbnail() method on an image this affects all instances of that image since it updates attributes on the XML DOM Element.

This causes the following behavior:
1.) An article is displayed with one image in the "story" field.
2.) A list of articles is presented where the same article exists and this list calls getThumbnail() on the first image it finds in the assets->images list.
3.) The client updates src, height and width on the same instance causing the image in the "story" field to also be a thumbnail.
Merge pull request #6 from androa/patch-1

Clone the XML element in order to support thumbnail generation
Add the possibility to inject configuration through the ctor instead of reading file with a predefined location.
Merge pull request #7 from androa/config-injection

Optional injection of configuration through the constructor for the client.
API key support on getArticle, some minor refactoring
Changes to make the client backwards compatible after previous changes that broke all our clients.
Merge pull request #9 from Jocumsen/master

Changes to make the client backwards compatible after previous changes that broke all our clients.
Rewrote recent changes to that it won't break any of our publications.
Added another form for injection of config and made the config parameter private (from protected), this means name changes on some methods - deprecated errors will be triggered where these are used incorrectly.
Updated code not to throw deprecated messages on it's own.
Merge pull request #10 from schold/develop

Rewrite so deprecation error isn't triggered every time the client is instantiated
updated article preview to use apikey when accessing public articles, in case accesslevel credentials are required