Multi changes

1. Added site mode to our analytics
2. Updated logic for the job extra info url template
3. Added some environment variables to the running job's process. 
4. Fix issue in triggered job run when the history path is not empty yet.