fixes npm cli generation when installed globally

This tells npm to create the command called 'coffeemugg' when installing globally. I've moved the cli code in to ```./src```

Also adds a method called renderFromString so that we can still render from string. It's how the cli did it originally.