Removed unnecesary dependencies. Define session storage before router.