Refactor loguserdata.py so it can be tested.

- Use distutils.version.LooseVersion for cloud-init version check
- Fix bug 1100287 by setting the following modes:
  - 0600 /var/log/heat-provision.log
  - 0700 /var/lib/heat
  - 0700 /var/lib/cloud/data/cfn-userdata (was 0111!)
- Full test coverage except for where __name__ == '__main__'
- File size has gone from 1218 bytes to 1636. If necessary we could reduce size in the future by using short names

This works for me when launching a template. At least if there are any regressions they can have a test written for the fix.
Change-Id: I04e773a743ec210e90394e50d2bb70c70664e80e
Catch 404s when deleting quantum resources.

Quantum resources are often automatically deleted when their
dependencies are deleted, so resource deletion needs to tolerate
the resource no longer being there.

Change-Id: Id2679a7b72b83f05c1ebac07305ae9a5e5923df9
Implement NetworkInterfaces instance property.

This accepts a list of strings, where each string will be a Ref
to either a OS::Quantum::Port or a (yet to be implemented)
AWS::EC2::NetworkInterface.

This fixes bug 1096013

Change-Id: Ic8aecf8d59395edcf111b3a778e79762af0e50d4
Make the doc look a bit better and give a better overview.

(styles mostly copied from Ceilometer docs)

Change-Id: Ie3eab4f579e0c16a09634faffb90e96a872d5d84
Implement the "Volumes" property of Instances

This moves the attachment code to clients so both instance
and volume can use it.

bug: 1101119
Change-Id: Id412110ceb74b3b5316f591d03898312691f2a3e
Merge "Refactor loguserdata.py so it can be tested."
Merge "Implement the "Volumes" property of Instances"
Merge "Catch 404s when deleting quantum resources."
Merge "Implement NetworkInterfaces instance property."
Merge "Make the doc look a bit better and give a better overview."
heat templates : allow access to wordpress in example templates

Latest wordpress package in Fedora defaults to deny-all so trying
to access the wordpress site on the instance no longer works,
so sed out the deny all to allow template examples and integration
tests to work again

Fixes bug 1123053

Change-Id: I7597e4f491426e639c4c19a92f610c8a693dc1f3
Signed-off-by: Steven Hardy <shardy@redhat.com>