add debug logging for HTTP and Cache class
Tidy up Api->doRequest

This makes debuging far easier.

This was added when trying to catch token errors but instead
found null results being passed around
If we are trying to do tests with no data DONT

Say that we should probably have defined data if
we want to get it....