code cleanup + bug fixed

Moved code around a bunch and cleaned it up. Also fixed an outofbounds
exception that was caused by loading another set of tweets after dumping
the first set via pull-to-refresh.