cec: split up the main() method in cec-client