Support including index.php in js base url if required

- Include ‘index.php’ in the window.config object
- Use window.config.jsdir when setting the requirejs baseUrl
Merge pull request #196 from ushahidi/handle-index-in-baseurl

Support including index.php in js base url if required