made hostname work with python 2.4
switched to iterator as per comments
minor fixes to wait_for to avoid tracebacks as per ansible core issue #9244
let implied type do the spliting
make sure 'present' is fully equivalente of 'installed' and remove installed from
feedback in favoer of 'present'
better handling of deprecated aliases
corrected comparisson which had accidentally chaned in previous fixes
Fix get_flavor_id() when flavor_ram is specified

Without this fix, _get_flavor_id() fails to find a matching flavor if
both:
* the flavor_ram parameter is specified
* the first flavor in the list does not match.

The bug is simply that the module.fail_json() call lies within the loop
iterating through the flavors.  This call should only be made if the
loop completes and no matching flavors have been found.
Merge pull request #314 from johnpbatty/devel

Fix get_flavor_id() when flavor_ram is specified
Merge pull request #311 from bcoca/apt_state_fix

Apt state fix
Merge pull request #303 from bcoca/wait_for_exlude_fixes

minor fixes to wait_for to avoid tracebacks
Merge pull request #286 from bcoca/hostname_24_compatible

made hostname work with python 2.4