Add Cookie accessor, fix PSR-2 code formatting