Making server URL configurable and fixing relative paths