Fixes for OS X target

Here are our latest fixes/tweaks for the OS X target.

- Moved the “Cancel” button in the login window controller to make it more OS X Human Interface Guidelines-friendly
- Fixed file upload headers (requests get rejected otherwise)