merge hotfix from MG-RAST/master and extensive development from braithwaite/matR (last approx dozen commits)