Re-factoring of LocalSelendroidNode and LocalIOSNode classes. Extracted common methods to an abstract super class.