Adding Safari iframe session fix + IE P3P + some refactoring