add device specific code

Added device specific code so that the app will perform properly pending ios or Android.
add platform specific functions

Added functions usable by specific platforms (ios and Android). This version currently works on Android but not ios. Going to fix once
dev environment is properly set up on mac mini.
Merge pull request #2 from jabroderick/add-detection

Add detection