Fix several bugs

- fix httpclient transport
- fix javanet transport
- cascade delete was broken if related id was null or not set and even
  if the whole entity was not set...
- fix logging