Cabalize and clean up auto-update

@kazu-yamamoto Please review. I'm going to work on a pull request to
fast-logger based on this code.