Moved build system to cabal

Also added BSD3 license