Revert "Moved everything to cakephp"

This reverts commit 24ecb74e4e23330e10a23cd5687c928ff65ff128.
Revert "Revert "Moved everything to cakephp""

This reverts commit 3fa8dc4424740cf9fe9382b3074f5cde382b8f2b.
Revert "Moved everything to cakephp"

This reverts commit 24ecb74e4e23330e10a23cd5687c928ff65ff128.