Added support to read/write BOW Corpus/Dictionary

Added helper functions in globals.py
Structured train.py in a better manner
Mongo cursor now returns the whole tweet doc, the iterable only reads the
tokens as usual.