cleanup old deprecated features, rename persistant to flash with backwards compatibility, support count_only query in Controller::index