Check if headers have been sent before starting a session

Check if headers have been sent before starting a session to prevent warning messages.
Merge remote-tracking branch 'gerp/master'

This is pull request #84 of facebook/facebook-php-sdk