add/test MRF loss.  Move losses to their own file. Fixes #78