Make handleIncoming' pure. Also removes all traces of channel_settings and finally closes #13