Fixed CMD+, issue as well as moved all curl request to proper NSURLRequests

Now when you press CMD+, will open up the preferences menu

Also all of the curls requests that were happening have been moved to proper NSURLRequests using Basic Auth.