add script for destroy&restart riak
unittest for riak database
complete core.redeem.getredeem; add common.util to place common used functions.
complete core.redeem.redeem_gift; define redeem.common.exception
Merge branch 'corefunc' into develop