refactor corefuncs; complete apifuncs gogoredeem.api.*; add unittest^Cor both core and api level
edit docstring for exception on api.redeem_gift
Merge branch 'apifunc' into develop