Introduce models in cake
Copy wiki engine from legacy-ems.
Replace date.js with moment.js