send the good binding to neutron after live-migration

Nova was sending the host that previously hosted the vm

Closes-Bug: #1224960

Change-Id: If4677c0d1e11a8cf16f9d49e9ca854ca2fcfb698
Remove unused _instance_update() method in compute api

The _instance_update() method was previously used in lock/unlock
but that changed when they were converted to use instance objects.

Change-Id: I1f1e00b31792fd13a5b72a15c0cb11cfde75f794
Correct deleted_at value in notification messages

The deleted_at value in notification messages is currently
set from the terminated_at value in the instance record.

A comment in the code says this is to avoid confusion between
terminated_at and deleted_at,  but swapping the names doesn't
seem to be a great way to address that.

In practice "terminated and not deleted" is a transient state
unless an error occurs, and the time gap is very short.  But
deleted_at is always set when the entry is deleted in the DB,
whereas terminated_at can be left unset in some error cases.

Rather than present terminated_at as the deleted_at value in
the message we include both and let the recipient decide which
they want to use.

Fixes bug: 1227080

Change-Id: Ic67f66b6c64be1a8f43f4fdd5b1fac25f1414247
v3 API samples for servers

Adds the rest of API samples for the core servers plugin. This is separate
from the other servers api samples because the output is potentially
dependent on all the other extensions and I'm expecting lots of merge
issues.

Partially implements blueprint v3-api-specification
Partially implements blueprint v3-api-unittests

Change-Id: Iffc814f327b0047c3510bfe5b8bbcb9e0e4540db
Rebuilding stopped instance should not set terminated_at

At the end of a rebuild action, nova checks the original vm_state
of the instance to see if it was stopped. If the instance was
originality stopped, nova will stop the newly rebuild instance.
Right before the stop, nova updates the instance and sets it's
terminated_at to utcnow(). Due to this, the periodic usage audit
does not send usage for the instance.

There's no reason for setting tereminated_at here, it should only
be set as part of instance deletion

Fixes bug: 1189554

Change-Id: I141aba1b4f3c15a4c17e1fc401ae9479acafb23f
Merge "Rebuilding stopped instance should not set terminated_at"
Merge "Correct deleted_at value in notification messages"
Merge "send the good binding to neutron after live-migration"
Merge "v3 API samples for servers"
Merge "Remove unused _instance_update() method in compute api"