Bugfixes to socket and http classes
Upgraded markdown class