new application architecture, add flask signals, add reindex command