Move hash calculation to a common class to improve DRY
Use codegangsta.Cli to build a more scalable tool