register interface to gob automatically

hide gob related details from user, see [issue434](https://github.com/astaxie/beego/issues/434)