- refactor to use Stud::Buffer and bulk index requests.
- fix flushing and index_type settings
- make setup_log4j a class method
- obey logging style guide