Add HTTP/1.1 persistent connection timeout

manage Connection object life cycle using shared_ptr
Merge pull request #11 from c0untd0wn/master

support for Mac OS X
Mac gcov error fix (remove -r option)