Bug/frommaster

#### Reviewers
@jesuspg @jesuspg @alberts-tid @jframos 

#### Description
inclusion of the jesus jersey branch, the hibernate problem 

### Test
Tested locally. It needs to be deployed and pass all tests

Lacks of comments of this class together with some strings that can be defined like constants of the class due to they are repeated along the file.