Base URL

1. There is now two different config variables for baseURL, one in JS and one in PHP. Combined both.
2. Adding `.htaccess` file which was missing