First pass at adding EM capability

Also added a test script to observe the effects. So far, no bugs, and
seems to work well for the GB prior and iid measurement matrix.
Adding NaN checks to ample.
Extending EM demos to Random Scrambled Fourier
Merge branch 'EM-Learning'