Added gitignore with idea and vendor dirs
Removed exit call
Splitted authorisation and token processing in to different methods