WIP: working on Erics PARREC changes

New version of https://github.com/nipy/nibabel/pull/253 with more changes on
top.

Please see original PR for comments.

This PR rebased on master.