console.log search added to pre_merge script
untested commit of inital stab at saving messages, also refactored users a bit