*NIX Log files part 2.

CR+LF added to new lines, created a global variable log_end that can be used
on newlines instead of checking if we're a *NIX system each time.

log_misc("blahblah...[log_end]\nMoreblahblah[log_end]")

put [log_end] prior to any \n and it will show up correctly in windows.

Also created log_misc() proc to log to diary, and removed a bunch of

diary << stuff all over the place.