Implemented export all and import APIs

With this commit, varnam can export words and patterns into text files
and import it back. While importing there won't be any learnings
happening thus it will be faster