Xrf fit

Change this into an actual test (see nsls2/tests/test_*.py for examples).  Try to do this using synthetic data (where you know what the answer _should_ be).  If you want to use random numbers remember to set the seed so that it is deterministic (I think there is an example of this in one of the test files already).