State Machine and Certmgmt.

Change-Id: Ie6df8cd05aac61ed89912d21b3e7bde2f2cc1df4
Signed-off-by: Vijay Anand R <vanandr@cisco.com>