rgw: add top level metadata handler

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>