cf-sketch.pl: add --apiconfig option to provide config.json directly for the API

Please review and test.