Fix for #3719

%-d is not a valid strftime format on windows.
cleanup terminal console iopub handling

ensures IOPub for a given cell is handled before drawing the next prompt.

Follows logic elsewhere using `status=idle` to signal end of output for a given cell.
Prior to this, early execute reply could result in some output being printed after the prompt for the next input.
remove unused current_msg_id
relax wait_for_kernel timeout

wait_for_kernel should be done very differently,
but I'm not certain exactly how.
re-raise KeyboardInterrupt in raw_input

shortens traceback when KeyboardInterrupt is caught deep within zmq.

closes #3786
catch KeyboardInterrupt in debug

avoids traceback for ^C in ipdb.

also prevents KeyboardInterrupt from exiting debugger.
Is this actually desirable?
Merge pull request #3787 from minrk/raw_input_sigint

re-raise KeyboardInterrupt in raw_input

closes #3786
Merge pull request #3720 from jstenar/nbconvert-datefmt

fix platform-dependent datefmt

closes #3719
Merge pull request #3765 from minrk/console-is-bad

cleanup terminal console iopub handling

ensures IOPub for a given cell is handled before drawing the next prompt.

Follows logic elsewhere using status=idle to indicated end of output for a given cell. Prior to this, early execute reply could result in some output being printed after the prompt for the next input.