Sam: add accessor method for mapq

what an oversight! Thanks for including this! 

Could you please rename it to `mapping_qual()` (just to follow the spelled out names for all the other functions in the API) and add a test to it in sam_test.cpp ?