Create Utils.php class and it's respective test class to keep utility functions in one place

Modified GeneratorFormCommand.php to use utility functions to convert user input to machine name.