Add timeout to readResponse and fix validation of content length

I've added a timeout to readResponse as I experienced a few occasions
where the server died mid-connection (perhaps is restarted) and the
DigiX hung forever.
I've also fixed the validation of contentLength in get (and added it to
post) as the string-based comparison didn't actually work for me.