Removed Facebook Stream code due to deprecation by Facebook.
Added append_sid calls to all redirects to prevent login loss after successful login.