Base URL

There is now tow different config variables for baseURL, one in js and
one in php. Combined both.
Merge pull request #2 from ssajith/#2

Base URL