Added phpstorm and vendor dirs to gitignore
Splitted getting token and it's processing into different methods