Added API to have id, name, and path for layer source
Pass location information as well
Fixed js syntax errors
Merge remote-tracking branch 'origin/add_timeseries_analysis'