Read rdb directly from fd stream and handle checksum bytes at the end

Read rdb directly from fd stream and handle checksum bytes at the end (if required by the rdb version). This enables receiving the rdb file from a stream (socket for example) and parsing it on the fly.