Use a strategy pattern to get the field value

I'm actually thinking about postponing this PR indefinitely… The `RestfulEntityBase` code is too coupled.

I think that a possible version 2 of the module ca go through a rewrite with the requirements in mind. The problem here was that we grew slowly without realizing how much we could accomplish.