Apache2 service was not restarting properly since Ubuntu14.04
which resulted in race conditions. This is explained in detail in the
script. Adds a work around to fix apache2 race invoked by lack of
www-browser virtual package linking to a basic text browser. Adding
w3m before hand to avoid any future issues. Ofcourse lynx or links
works here too.
Also provides more systematic stopping and starting of apache service
for eliminating restart/start-stop race issues.
Change-Id: I541d5b27bbfdda9b9f3eda72a0f13e9e8333faa2