Merge recent changes from wtsi-npg:devel

Includes various bugfixes and addition of miget functionality