Fix/merge release 4 0 into dev

Because of the conflicts I had to resolve, I want to run this through travis before merging.
Identifier 'custom_field_id' is not in camel case.