separating rest and http_rest into separate libraries