Fix Issue#1778: Create a default index.html file if there isn't one when the browser refreshes (#1822)
Fix Issue#1778: Create a default index.html file if there isn't one when the browser refreshes (#1822)

* Try to "ask" Bramble to create the index.html file

* Writing index.html directly onto the project folder now

* remove an unnecessary variable

* Add a callback() for writing the file

* remove a callback() since it introduced an error

* Calling callback() properly now

* create index.html when there isn't one in the project root

* remove the loop with 'exists' function

* missing some semi-colons

* code clean-up

* minor changes

* remove a log

* passing callback instead of wrapping it

mozilla/thimble.mozilla.org,mozilla/thimble.mozilla.org,humphd/thimble.mozilla.org,humphd/thimble.mozilla.org,mozilla/thimble.mozilla.org,humphd/thimble.mozilla.org,mozilla/thimble.mozilla.org,humphd/thimble.mozilla.org