Move main() out of clatd.c.
am: eb92f48b1d

Change-Id: I8291ba040f609784bfcbd482943e434b78214042