Fixed API clustering analysis creation to new version. fixes #369.
Added factory error service to API. fixes #373.
Added better error alerts in API. fixes #374.