Move cyon_storelog_write() to before we actually do all operations.
remove debug
Do not log stuff if we are running with -n
remove crap for now
remove useless cruft, swap %lu to %PRIu64