Added ajax controller, refactored the default controller, flushCache runs via ajax now.