Save password set through xen agent.

The get-password extension expects an encrypted b64 encoded password.
If we are setting the password via a guest agent and the user has
provided a public key, then we can go ahead and encrypt the password
and write it to metadata. If the guest agent is not working or not
installed, we leave the encrypted password to be set by posting to the
metadata server.

Related to blueprint get-password

Change-Id: I3ed26c7e1929f3c4c84f9bb87b0c620ab27223cb
Makes sure compute doesn't crash on failed resume.

If the call to the driver to resume an instance raises an exception,
then nova-compute fails to start properly. This can happen during
recovery, for example, where an instance has been deleted so the
backing files are gone but the database is restored to a state
where it exists.

This patch fixes the issue by catching the exception and setting
the instance to error.

Fixes bug 1100430

Change-Id: Ie31f39fcd43174c29bf7a5cb1b6fa29e4c723f97
don't allow crs in the code

triggered by this slipping into quantum, now that we have more windows
developers we should ensure that \r\n doesn't land in the code as
a line ending. This check prevents it.

Change-Id: I0a82be0e74915d3c3c25203db110d279580c148b
Cells: Fix for relaying instance info_cache updates

The update_cells argument was ignored in db/api.py.  The API cell when
doing an update calls this with False to prevent relaying the request
back to itself... but it was being relayed anyway.

Change-Id: I5a40c878a547e81605dc40f0077b7c6e20ee3ad4
Merge "don't allow crs in the code"
Merge "Makes sure compute doesn't crash on failed resume."
Merge "Cells: Fix for relaying instance info_cache updates"
Merge "Save password set through xen agent."