Added migration for sessions.
Use standard ES6 Promise functions.