cleaning up mist server. fixed a bug with publishing to random channels, adding logging