Enable openssl tests
Enables the openssl tests and reimplements the read/write methods to be more thread safe. Although I had to skip the output-stream-close test as for some ends up asserting.
The tests are not passing as for some reason using a MainLoop seems to leak. No idea about this... I am already getting tired of this so I am putting the current wip here and leaving it aside for now :)
Edited by Ignacio Casal Quinteiro