Added miles or kilometers toggle

Added to device view.
Fixed #171
Merge pull request #160 from pcaddict08/master

Added miles or kilometers toggle.
Minor fix after merge of #160
Minor fix after merge of #160
Default settings
Dynamically refresh portal detail screen
Refactoring
Merge pull request #1 from alex-alex/master

Merge with master