added refreshUI() method to upload samples when the app is resumed and the summary fragment or myDevice fragment are in foreground. also check whether the user stats are received from the stats URL before loading the summary screen/fragment
did a git diff against the 'staging' branch and the current branch, reverted some changes, and modified the code for debugging. The 'org' directory in the src directory is the Thrift's source code, and its existence should not make any difference since we already have its jar file and it is included in the build path ([hidden] class path file of the project)
removed traffic stats from the protocol and regenerated the trift files (for debugging, currently uploading samples operation sometimes faces problem, and we don't get the hogs/bugs reports, and we get a zero jscore)
removed Thrift's jar file, because it causes a conflict since we also have its source in src/org directory. later on we can check to see whether replacing the source code with the jar file has caused the problem.
converted the printed 'timestamp' of the last uploaded sample, to a human readable date-time format
added some log statements in the CommunicationManager class to see whether the hog/bug reports are blank, changed the server address (in caratserver.properties) to the local machine (so that the client connects and sends the reports to the locally running server) for debugging, removed the duplicate thrift source files (these are copied to the src/ directory (where they should be))
1. beautiful refactoring (MyDeviceFragment is now much cleaner and more readable) 2. replaced Thrift library's source classes (thousands of lines of code) with its single (compiled) jar file to avoid distraction (distracting 3rd-party code) (had done it before, but had reverted back for debugging) 3. commented out some distracting log statements (kept those that are critical for debugging)
Merge branch 'fix/trafficStats' of github.com:amplab/carat into fix/trafficStats

Merge (pull) remote changes (iOS app changes) into my local branch