replace_suffix and append_stem more generic

made replace_suffix and append_stem also take lists of
files and return lists of transformed files.

added replace_directory.
Merge branch 'master' of github.com:chapmanb/bcbio-nextgen