add encoder cabac support
Merge pull request #1457 from ruil2/enc_cabac

add encoder cabac support
Merge remote-tracking branch 'upstream/master' into travis.osx