Remove trailing whitespace
Add support for installing a new image on the Amazon AMI

- Check if installing on AWS EC2 platform via instance metadata.
- Configure GRUB correctly, so that boot messages are available
  via instance's console.
- Add init.d script to fetch user's EC2 public key during boot.