OS X: Add device scanning feature and fix bugs

- Also improved comments in Objective-C code.
- Fixed bug in Yahoo weather lookup