Restore (defvar org-state) since that's good practice for removing warnings

http://stackoverflow.com/questions/12432093/get-rid-of-reference-to-free-variable-byte-compilation-warnings
Restore url-http-end-of-headers (same reason)