Rename EntityDecoder apply to decodeBy

I also curry it in order to get a nicer syntax for the first function argument