upgrade the core cake from 1.3.8 to 2.4.2

and did all the changes to make the whole site running just fine.

Signed-off-by: RayAllen <ray@ray-Lenovo-IdeaPad-S400.(none)>