[OE-3781] added generate sessions button the sequences admin view and moved the generateSessions code into the api class.