Modifications to support checking for completed tasks before closing
connections and extended to support calling from external Java
applications with tweet IDs and possible proxies as parameters.