More code cleanup.
Refactoring to make naming and usage more transparent.
Made more CLI interface more consistent between local model and Thrift mode.
Made search API more consistent; add program to extract tweetids from index.