add exception handling, persistence and rpc of schema
merge with zhuqihan and fix conflict
add rpc: get_file_by_id, get_local_attibution, get_all_attributions using thrift
fix error when persist table and its nodegroup