RESTful actions for flights and contracts now working, including ajax