Allow to run the Gallery demo via http, https and local file protocol. Closes #16