Fixed demo site APIs according to refactoring done in core.