Better interaction with previous mdb command

- An empty input will repeat last command
- All WS lines will not get into the history
Fix possible virtual function calls from constructor

Ignore #msh mdb args for now
Fix writing to std::cout directly

Also introduced print_current_frame() function