Performance and IndexOutOfBounds fix

* Changed logging function to use inbuilt logger - thanks Goofybud16
* Fixed lock-up when change to/from Private tab - required changing how
selecting a tab is handled, now uses the same method of getting what
type of tab is selected as TabbedMouseListener.
* Changed some methods to use an iterator instead of an Enhanced For
loop, this should help with ConcurrentModificationExceptions.
* Fixed IndexOutOfBounds error when parsing the 'message' out of
receivedText by checking to make sure there are two ':' within received
text. See countOfOccurences within Connection.