Add in new logs
Set up logging functionality earlier
Add in optind to reset
Merge pull request #8 from Metaswitch/log_tidy

[No reviewer] Set up logging functionality earlier and add more logs to memento