Basic framework for ajax forcedetect/gr_astrphot calls