Move grn_accessor related codes in a new file

related by #116.