Shifted to CDH4, no more EIPs and few bug fixes

* Shifted the image to CDH4.
* The EIPs aren't associated with the instance if it already has a public DNS
* Hadoop gid and mapred uid are fetched from the master on runtime.