On-the-Fly Automated X-ray Data Analysis for Grid Computing and the Virtual Observatory