Modifications to enable loading/storing of vocabulary files

Use command create_vocab as first step
on second thoughts, we can remove nnjm_types and move typedef int WordId to vocab.h