Base URL

There is now tow different config variables for baseURL, one in js and
one in php. Combined both.