Put the logic from devstack gate into tox.

Change-Id: Idb4a5a0b5eeca266603db8737d65120864de1c6a