Use SkinFactory to register skin, and Config instead of globals

Change-Id: Ic90969e5d71458c880f2b59e160ffedd7a5ac9be