TIMOB-11671-Use static class instead of inner class to avoid memory leak

Change the inner classes to static classes so that parent is garbage collected even though inner class instance is referenced (in this case, the ClientRunnable and the thread)

https://jira.appcelerator.org/browse/TIMOB-11671