Get rid of uncecessary global vars, unecessary defines, and old file header
Clean up after myself
Put cURL execution in low-priority queue