Re-order stack.sh 3: logging and error traps

Part 3 of a series

Re-order the setup and check bits in the top portion of stack.sh to
have a logical flow with similar things done together.

No behaviour changes are intended aside from the order of execution.
Any such changes are bugs.

* Move logging and error configuration earlier to cover initial project setup.

Change-Id: Ib16bbe20f224b1cf5e86c7a2fda0d9472c108873
XenAPI: Fix race condition waiting for VM to start

Buildroot on Ubuntu Trusty is slow to populate the vnc-port.
Wait for 20 seconds until the port is populated.

Change-Id: I50e5b5a161207d46e8ce0e304d816e8e5b68dbe8
Install haproxy on SUSE distros

haproxy package is available for SUSE distros, so install it.

Change-Id: If363dbf439dbea9aafd265c2c665ff4c2b733738
Merge "Install haproxy on SUSE distros"
Merge "XenAPI: Fix race condition waiting for VM to start"
Merge "Re-order stack.sh 3: logging and error traps"
Merge branch 'master' of https://github.com/openstack-dev/devstack