refactor appdelegate to use [SPSession sharedSession]