Rest: added historic form data API and integrated ProcessInstanceResource with historic data