Edited (and moved to utils/lib) astLib.py to be async safe.
Implemented ajax request that checks for existence of images (imagequery), then write <img src=""> to point to these images (jquery)