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)
Merge pull request #12 from sachac/tweak-for-regular-use

Restore defvars; refresh after marking a task as done