register interface to gob automatically
Merge pull request #497 from pengfei-xue/develop

register interface to gob automatically