elliptics: moved read/write to purely go objects, added go structures and helper functions