Added API for admin panel so content can be AJAXed in combination with using dot.js templating.
Refactor of some JS code
Still many many bugs!