added idea and vendor dirs to gitignore
removed vendor dir from gitignore because this dir already exists in project
Moved processing token in its own method for cases, when we already have token, fetched from external location