Move libraries `layout', `model', `peristence' under cms folder

Updated code to the new layout.
Added missing comments.
Remove /example/api