Remove debugging stuff from AlgSimplify.
Turn Futhark into a library on which the compiler depends.

This has the main effect of letting us write a proper test suite, of
which an embryonic one has been added as a demonstration.  Try it out
with 'cabal test'!