updated the makeAPICall function and removed the getHeaders function

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>
added php's native simpleXMLelement

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>
added some more debugging

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>
changged the class name

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>
various updates around authentication and added a check to see if the response was 304 not modified.

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>
various changes

Signed-off-by: Scott-David Jones <scott.jones@autumndev.co.uk>