improved SWORD exception handling

- check for StudyLock
- start including UriRegistry info (ERROR_BAD_REQUEST)
- guard against EJBException from studyService.getStudyByGlobalId