Handle ChunkedEncodingError exceptions.

This seem to happen intermittently, I think 
indicative of the connection being closed.
Update to move pynedm out of source and code out of __init__