add wait_for option to check for webserver uptime before haproxy enables

This is an attempt at the modifications @mpdehaan recommended in regards to #46