cf-sketch.pl: add --install-all option and refactor the API interactions a little