Adding sugarjs and support for saving a dictionary as a log.