Cleaned up the authorization code, and fixed the post request for the access token
Changed static-file variables to use the HOME environment variable