Make the site work properly when accessed from other devices

Previously $wgServer was always set to http://127.0.0.1:8080 and assets
(CSS, JS) would not be served if the site was accessed from another
device.

This is required for testing on mobile devices.

Change-Id: I6b3890ff376cac121be32f96d2eb00869cd875a5