Simplified Stream::isAvaiable() (moved the changes to NetworkStream::isAvailable());
Added bootstrap code to generate self signed SSL certificate for testing (but the SSL tests are still disabled, as most hang).