Integrate L2SwitchMain with config subsystem.

Change-Id: I572de5580194ac6f693a66fdd9e90ed8da55b837
Signed-off-by: Alex Fan <railor33@gmail.com>