Fix some logging and update 'save' and 'load' to use promises properly.