add helper functions `http::wait_for()` and `http::wait_until()`

These functions have been added to circumvent the buggy implementation of `std::future<T>::wait_for()` and `std::future<T>::wait_until()` from Microsoft (at least for VS2012; not sure about VS2013 yet).