Add a proper Setup.hs, and a default.nix file
Bump version to 0.3.1