Major commit. Separated the program into modules, added a cabal file and recources, and created a popup dialog for generating new keypairs.