Passport auth added, some refactoring and comments required, will be added later
Security was updated with comments, plus commented code throwed out