Updated to use `hostname` and `replace` modules

Both modules should be (hopefully) in ansible's 1.4 release, until then providing them here as custom lib modules:

* hostname module, see ansible/ansible#3940
* replace module, see ansible/ansible#4889