Improved memory logging.

* Logging is now toggleable
* Entries are now updated at all stopping points
  * All stepping types (in, out, over)
  * Pause execution
  * Stop execution
  * Error during execution
* Logging sessions are delimited
* Log file is no longer opened and closed for each entry (Fixes #165)