Cleanup of zfs.js

I have cleaned up the ZFS module used by `dsadm` since it basically looked like a mess :P
The only things JSHint complain about now, is that `'use strict';´ is missing, and that the variable `ERR_SEND` is used, but not defined anywhere - which seems like a mistake to me.