Tidy up (Part 1)

Pull the 'crypter' code out into its own module.