Enh/afni refactor

Here's a long overdue refactor of AFNI classes @sgiavasis @inati @bpinsard please test and comment.