Move WriteNeighboursWithExt from m_ircv3 to the User class.

As discussed in #687 this moves WriteNeighboursWithExt to the User class so it can be used by other modules.