Log Gathering and using session tokens

One new feature and one improvement in this pull request
* Log Gathering
* Session Token Authentication