Refactor vocabulary generator into cedict generator

Change-Id: Ic164cbcbde81298c8b4b33fb547d7b29b58b6f29