More refactoring; added platform-specific resource path defines

- Refactoring of Preferences widget; general code pruning
- Datasheet/manual links work on Mac, Windows, and Linux
- Made top-level makefile more generic
- Removed platform auto-detection and made rpi target instead