Simple authentication gateway boilerplate for MEAN